From 7e959b537f4be6e53724a35ed2160ced74bdae99 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 --- python/musicxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5