py/makeqstrdata.py: Allow using \r\n as a qstr if a port requires it.

This commit is contained in:
Paul m. p. P 2019-07-07 02:48:01 +02:00 committed by Damien George
parent 82dc9856b0
commit 154062d9cb

View File

@ -279,9 +279,11 @@ def parse_input_headers(infiles):
# get the qstr value # get the qstr value
qstr = match.group(1) qstr = match.group(1)
# special case to specify control characters # special cases to specify control characters
if qstr == '\\n': if qstr == '\\n':
qstr = '\n' qstr = '\n'
elif qstr == '\\r\\n':
qstr = '\r\n'
# work out the corresponding qstr name # work out the corresponding qstr name
ident = qstr_escape(qstr) ident = qstr_escape(qstr)