lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANNOUNCE] ly2video 0.4.1


From: Knut Petersen
Subject: Re: [ANNOUNCE] ly2video 0.4.1
Date: Fri, 08 Mar 2013 12:25:11 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130215 Thunderbird/17.0.3



--- 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]