commit 09d1d1cec19a7cbc73e534e577c66264c481e12b
parent 72e53ecf48386a37bb13c856724f84934f3b2a0b
Author: nibo <nibo@relim.de>
Date: Mon, 13 Jan 2025 10:47:17 +0100
Treat custom sections as lyrics
By custom sections I mean {start_of_*} and {end_of_*}
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/chordpro.c b/chordpro.c
@@ -3541,11 +3541,13 @@ cho_directive_parse(const char *name)
directive->dtype = DT_ENVIRONMENT;
directive->position = POS_START;
directive->stype = ST_CUSTOM;
+ directive->ftype = SF_TEXT;
goto END;
} else if (str_starts_with(name, "end_of_")) {
directive->dtype = DT_ENVIRONMENT;
directive->position = POS_END;
directive->stype = ST_CUSTOM;
+ directive->ftype = SF_TEXT;
goto END;
}
directive->dtype = DT_CUSTOM;