]> git.donarmstrong.com Git - lilypond.git/commitdiff
Don't replace % by \% in ly:format. The png backen uses % as escape sequence
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 31 Aug 2009 17:33:50 +0000 (19:33 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 31 Aug 2009 17:33:50 +0000 (19:33 +0200)
lily/general-scheme.cc

index 8d1f05e8efa7f958220d81c09e4c117709b82cca..43ff7456238ba1fd8a6b9e602f21d2bb59fb610b 100644 (file)
@@ -437,7 +437,8 @@ format_single_argument (SCM arg, int precision, bool escape = false)
           // Escape backslashes and double quotes, wrap it in double quotes
           replace_all (&s, "\\", "\\\\");
           replace_all (&s, "\"", "\\\"");
-          replace_all (&s, "%", "\\%");
+          // don't replace percents, since the png backend uses %d as escape sequence
+          // replace_all (&s, "%", "\\%");
           replace_all (&s, "$", "\\$");
           s = "\"" + s + "\"";
         }