py/makeqstrdata.py: Allow using \r\n as a qstr if a port requires it.
This commit is contained in:
parent
82dc9856b0
commit
154062d9cb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue