Fix issue with converting INO to CPP and missing line number

This commit is contained in:
Ivan Kravets
2016-09-01 23:19:46 +03:00
parent 6b63ae2e46
commit b8af2acce5
2 changed files with 3 additions and 4 deletions

View File

@ -194,8 +194,8 @@ if :option:`platformio run --environment` option is not specified.
:ref:`projectconf_pio_env_default` allows to define environments which
should be processed by default.
Multiple environments are allowed if they are separated with ``, `` (comma+space).
For example.
Multiple environments are allowed if they are separated with ``, ``
(comma+space). For example.
.. code-block:: ini

View File

@ -90,7 +90,7 @@ class InoToCPPConverter(object):
return isfile(out_file)
def _join_multiline_strings(self, contents):
if "\\" not in contents:
if "\\\n" not in contents:
return contents
newlines = []
linenum = 0
@ -99,7 +99,6 @@ class InoToCPPConverter(object):
_linenum = self._parse_preproc_line_num(line)
if _linenum is not None:
linenum = _linenum
continue
else:
linenum += 1