lorid

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

commit 3812adf8b767294df52c6daa7044329196e1d133
parent 33e49574529be97e5266afdbcd2feed9184213be
Author: nibo <nibo@relim.de>
Date:   Wed,  9 Apr 2025 13:22:45 +0200

Fix not parsing a tab section with a label

Diffstat:
Msrc/chordpro.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/chordpro.c b/src/chordpro.c @@ -5449,11 +5449,15 @@ cho_songs_parse(const char *str, const char *chordpro_filepath, struct Config *c cho_log(&ctx, LOG_ERR, "Invalid directive type '%d'.", directive->dtype); return NULL; } + if (directive->stype == ST_TAB) { + ctx.state = STATE_TAB; + } else { + ctx.state = STATE_LYRICS; + } memset(directive_value, 0, strlen(directive_value)); free(stripped_directive_value); cho_directive_free(directive); directive = NULL; - ctx.state = STATE_LYRICS; break; } if (c == '%') {