fix: blank lines split implicit verses into separate sections (Closes #29) #30

Merged
shahondin1624 merged 1 commits from feature/issue-29-blank-lines-split-implicit-verses into main 2026-03-17 15:35:38 +01:00

1 Commits

Author SHA1 Message Date
shahondin1624
f64e5e2818 fix: blank lines split implicit verses into separate sections (Closes #29)
The ChordPro parser previously skipped all blank lines unconditionally,
causing songs without explicit {start_of_verse}/{end_of_verse} directives
to be parsed as a single section. This adds an explicitSection flag to
track whether a section was started by an explicit directive or implicitly.
Blank lines now flush implicit sections, allowing the next lyric line to
start a new implicit VERSE section. Explicit sections still ignore blank
lines as before.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 15:35:15 +01:00