mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Fix issue with INO to CPP converter and multiline strings
This commit is contained in:
@ -115,7 +115,7 @@ class InoToCPPConverter(object):
|
|||||||
elif stropen:
|
elif stropen:
|
||||||
newlines[len(newlines) - 1] += line[:-1]
|
newlines[len(newlines) - 1] += line[:-1]
|
||||||
continue
|
continue
|
||||||
elif stropen and line.endswith('";'):
|
elif stropen and line.endswith(('",', '";')):
|
||||||
newlines[len(newlines) - 1] += line
|
newlines[len(newlines) - 1] += line
|
||||||
stropen = False
|
stropen = False
|
||||||
newlines.append('#line %d "%s"' %
|
newlines.append('#line %d "%s"' %
|
||||||
|
Reference in New Issue
Block a user