1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-04-09 19:15:43 +02:00

NSIS: Escape line endings for NSIS correctly.

This is supposed to fix 
This commit is contained in:
Klaas Freitag 2016-01-11 15:36:24 +01:00
parent 536fd105ae
commit ea03f9da13

View File

@ -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 = {}