Skip to content
Snippets Groups Projects
Commit 154062d9 authored by Paul m. p. P's avatar Paul m. p. P Committed by Damien George
Browse files

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

parent 82dc9856
No related branches found
No related tags found
No related merge requests found
...@@ -279,9 +279,11 @@ def parse_input_headers(infiles): ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment