diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-28 13:14:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-28 13:14:23 +0300 |
commit | 6ba4a82ba98a9302b1bdf841277b68612b318c39 (patch) | |
tree | 136777473885e855086eb6d0d3d1db15846d32ca /lang | |
parent | 2039c6b5f2e19bf74f060389d95f20d640113c25 (diff) | |
download | evol-tools-6ba4a82ba98a9302b1bdf841277b68612b318c39.tar.gz evol-tools-6ba4a82ba98a9302b1bdf841277b68612b318c39.tar.bz2 evol-tools-6ba4a82ba98a9302b1bdf841277b68612b318c39.tar.xz evol-tools-6ba4a82ba98a9302b1bdf841277b68612b318c39.zip |
lang: fix parsing strings with escaped quotes.
Diffstat (limited to 'lang')
-rwxr-xr-x | lang/updatelang.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/updatelang.py b/lang/updatelang.py index ce824c4..43c27c6 100755 --- a/lang/updatelang.py +++ b/lang/updatelang.py @@ -27,6 +27,7 @@ langs = set() itemNamesByName = dict() def addStr(text, comment, fileName, lineNum, addNoC): + text = text.replace("\a", "\\\""); allStrings.add(text) if comment[-1:] == "\n": comment = comment[:-1] @@ -54,6 +55,7 @@ def collectScriptStrings(parentDir, relativeDir): cnt = -1 for line in f: cnt = cnt + 1 + line = line.replace("\\\"", "\a"); m = strre1.findall(line) if len(m) > 0: for str in m: |