From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Sun, 24 May 2009 15:03:50 +0000 (+0200)
Subject: Better detection which characters need to be quoted in lyrics
X-Git-Tag: release/2.13.1-0
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ff46d5884c9c99ed33896585fd9d245e953092fb;p=lilypond.git

Better detection which characters need to be quoted in lyrics
---

diff --git a/python/musicxml.py b/python/musicxml.py
index db53bc4910..0400cce253 100644
--- a/python/musicxml.py
+++ b/python/musicxml.py
@@ -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