From 92e3d468e424ec6d2fbfd7d633d1d00e40e57a08 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sun, 24 May 2009 17:03:50 +0200 Subject: [PATCH] Better detection which characters need to be quoted in lyrics (cherry picked from commit 0ac32e91fab38b860ad951b8f0cd4700f79ba86a) --- python/musicxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/musicxml.py b/python/musicxml.py index b6a5bbeac8..431bcd695d 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 -- 2.39.2