From a649d726063d548bbf5f05aef8c4420ddf0cfe6e Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 14 Apr 2016 15:22:36 +0100 Subject: py/makeqstrdata: Add special case to handle \n qstr. --- py/makeqstrdata.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'py/makeqstrdata.py') 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 -- cgit v1.2.3