commit | a649d726063d548bbf5f05aef8c4420ddf0cfe6e | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Thu Apr 14 15:22:36 2016 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Thu Apr 14 15:22:36 2016 +0100 |
tree | 48aefc2bc3df6caccf869c96a8c21f9819e46f9e | |
parent | 2243d68345cc3446b26c792c1424c81bcf858216 [diff] [blame] |
py/makeqstrdata: Add special case to handle \n qstr.
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py index 325207c..c00ec1e 100644 --- a/py/makeqstrdata.py +++ b/py/makeqstrdata.py
@@ -93,6 +93,12 @@ # 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