lorid

convert chordpro to pdf
git clone git://git.relim.de/lorid.git
Log | Files | Refs | README | LICENSE

commit 04bf0176e7eeb0dbc5a52f716c10ca6a119fe162
parent 38c37fe52cae083ff7a0f818d364e4341720b4bc
Author: nibo <nibo@relim.de>
Date:   Sat, 25 Jan 2025 12:14:58 +0100

Remove TODO comment cause it's already implemented

Diffstat:
Mchordpro.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/chordpro.c b/chordpro.c @@ -4028,7 +4028,6 @@ cho_songs_parse(FILE *fp, const char *chordpro_filepath, struct Config *config) } break; case DT_CUSTOM: - // TODO: Implement {start_of_*} and {end_of_*} custom directives cho_log(LOG_INFO, "Ignoring custom directive '%s'.", directive_name); break; default: @@ -4898,7 +4897,12 @@ cho_debug_songs_print(struct ChoSong **songs) char *name; for (s = songs; *s; s++) { for (se = (*s)->sections; *se; se++) { - printf("## Section\n"); + printf("## Section"); + if ((*se)->label) { + printf(": %s\n", (*se)->label->text); + } else { + printf("\n"); + } for (li = (*se)->lines; *li; li++) { printf("## Line\n"); it = (*li)->items;