From ea03f9da132e669b7528d0125a2064be45ada97e Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 11 Jan 2016 15:36:24 +0100 Subject: [PATCH] NSIS: Escape line endings for NSIS correctly. This is supposed to fix #3519 --- admin/win/nsi/l10n/bin/build_locale_nsi.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/admin/win/nsi/l10n/bin/build_locale_nsi.py b/admin/win/nsi/l10n/bin/build_locale_nsi.py index cb52df433..d71e3e673 100755 --- a/admin/win/nsi/l10n/bin/build_locale_nsi.py +++ b/admin/win/nsi/l10n/bin/build_locale_nsi.py @@ -104,10 +104,12 @@ localeToName = { def escapeNSIS(st): return st.replace('\\', r'$\\')\ .replace('\t', r'$\t')\ - .replace('\r', r'\r')\ - .replace('\n', r'\n')\ + .replace('\r', r'$\r')\ + .replace('\n', r'$\n')\ .replace('\"', r'$\"')\ - .replace('$$\\', '$\\') + .replace('$$\\', '$\\')\ + .replace('$\\n', r'$\n') + translationCache = {} -- 2.30.2