]> git.donarmstrong.com Git - lilypond.git/commitdiff
Better detection which characters need to be quoted in lyrics release/2.13.1-1
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 24 May 2009 15:03:50 +0000 (17:03 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 24 May 2009 15:08:26 +0000 (17:08 +0200)
python/musicxml.py

index db53bc49106fa5217d4cec879849c91737672079..0400cce2532de083414c0ebbb3a730cc75e32b75 100644 (file)
@@ -15,7 +15,7 @@ def error (str):
 
 def escape_ly_output_string (input_string):
     return_string = input_string
-    needs_quotes = not re.match (u"^[a-zA-ZäöüÜÄÖßñ]*$", return_string);
+    needs_quotes = not re.match (u"^[a-zA-ZäöüÜÄÖß,\.!:ñ]*$", return_string);
     if needs_quotes:
         return_string = "\"" + string.replace (return_string, "\"", "\\\"") + "\""
     return return_string