aboutsummaryrefslogtreecommitdiff
path: root/py/makeqstrdata.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-14 15:22:36 +0100
committerDamien George <damien.p.george@gmail.com>2016-04-14 15:22:36 +0100
commita649d726063d548bbf5f05aef8c4420ddf0cfe6e (patch)
tree48aefc2bc3df6caccf869c96a8c21f9819e46f9e /py/makeqstrdata.py
parent2243d68345cc3446b26c792c1424c81bcf858216 (diff)
py/makeqstrdata: Add special case to handle \n qstr.
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 325207c05..c00ec1eb2 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