]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove CR LF from snippets using makelsr
authorPhil Holmes <mail@philholmes.net>
Sun, 24 May 2015 13:44:10 +0000 (14:44 +0100)
committerPhil Holmes <mail@philholmes.net>
Sun, 31 May 2015 14:00:23 +0000 (15:00 +0100)
scripts/auxiliar/makelsr.py

index d17fd53c71263e02bfd042f41bc4bbe6f854263d..71c8179f36721a047821e23cd25d9bf20fbe3618 100755 (executable)
@@ -251,6 +251,7 @@ def copy_ly (srcdir, name, tags):
     s = strip_white_spaces_re.sub ('', s)
     s = final_empty_lines_re.sub ('\n', s)
     s = escape_backslashes_in_header (s)
+    s = s.replace ("\r\n", "\n")
     sys.stderr.write ("makelsr.py: writing %s\n" % dest)
     open (dest, 'w').write (s)