From 2f906344de15075d955e2409f289bc22c21dc42c Mon Sep 17 00:00:00 2001 From: Christoph Wagner Date: Thu, 23 Nov 2023 10:24:06 +0100 Subject: [PATCH] fix custom line break issue with comma --- verses_with_chords.ly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verses_with_chords.ly b/verses_with_chords.ly index eaef1b3..c1b8344 100644 --- a/verses_with_chords.ly +++ b/verses_with_chords.ly @@ -114,7 +114,7 @@ (make-custom-linebreaks (cdr break-words) (ly:regex-replace - (ly:make-regex (string-append "(" (ly:regex-replace (ly:make-regex "(.)") (car break-words) "(?:\\(?" 1 "| *,[^,)]+\\)" 1 ")") "(?: *,[^,)]+\\))?)(.*)$")) + (ly:make-regex (string-append "(" (ly:regex-replace (ly:make-regex "(.)") (car break-words) "(?: *,[^,)]+\\)" 1 "|\\(?" 1 ")") "(?: *,[^,)]+\\))?)(.*)$")) newtext 1 "\n" 2))))))