]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/musicxml.py
Better detection which characters need to be quoted in lyrics
[lilypond.git] / python / musicxml.py
index b6a5bbeac87fde3fbef733ffde49c03d318a722a..431bcd695d69949e500d533c1fb2b23d5e4ebb50 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