summaryrefslogtreecommitdiffstatshomepage
path: root/py/makeqstrdata.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/makeqstrdata.py')
-rw-r--r--py/makeqstrdata.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py
index 325207c05a..c00ec1eb28 100644
--- a/py/makeqstrdata.py
+++ b/py/makeqstrdata.py
@@ -93,6 +93,12 @@ def parse_input_headers(infiles):
# get the qstr value
qstr = match.group(1)
+
+ # special case to specify control characters
+ if qstr == '\\n':
+ qstr = '\n'
+
+ # work out the corresponding qstr name
ident = qstr_escape(qstr)
# don't add duplicates