summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPhil Holmes <mail@philholmes.net>2015-05-24 14:44:10 +0100
committerPhil Holmes <mail@philholmes.net>2015-05-31 15:00:23 +0100
commitb1a041c2c5b46e4f3ad654cbcfb712c267031863 (patch)
tree71ed912342c0e4cddee3eb74e56d88c7a0ebf512 /scripts
parentb666e5959e3eb170e57bb1937f9589cfbe7c0ae4 (diff)
Remove CR LF from snippets using makelsr
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/auxiliar/makelsr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/auxiliar/makelsr.py b/scripts/auxiliar/makelsr.py
index d17fd53c71..71c8179f36 100755
--- a/scripts/auxiliar/makelsr.py
+++ b/scripts/auxiliar/makelsr.py
@@ -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)