--- ly2video.py.orig    2013-03-07 09:40:54.675565398 +0100
+++ ly2video.py    2013-03-07 09:52:19.787389048 +0100
@@ -1723,7 +1723,7 @@
                 fSanitisedLyFile.write("\\header {\n   tagline = ##f composer = 
##f\n}\n")
                 headerPart = True

-            if re.search("title\\s*=", line):
+            if re.search(" title\\s*=", line):
                 titleText.name = line.split("=")[-1].strip()[1:-1]
             if re.search("composer\\s*=", line):
                 titleText.author = line.split("=")[-1].strip()[1:-1]

As \b matches the empty string at the beginning of a word, a better solution is 
to use

 +            if re.search("\\btitle\\s*=", line):

as \b matches the empty string at the beginning of a word.

Adam, that should fix issue 49.

cu,
 Knut

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to