fix: blank lines split implicit verses into separate sections (Closes #29) #30
Reference in New Issue
Block a user
Delete Branch "feature/issue-29-blank-lines-split-implicit-verses"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
explicitSectionflag toChordProParserto distinguish between sections started by explicit directives ({start_of_verse}, etc.) and implicit sections (started when a lyric line is encountered outside any section)Closes #29
Test plan
{start_of_verse}/{end_of_verse}are still ignoredThe 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>