py/makeqstrdata: Add special case to handle \n qstr.

This commit is contained in:
Damien George
2016-04-14 15:22:36 +01:00
parent 2243d68345
commit a649d72606
2 changed files with 7 additions and 1 deletions

View File

@@ -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