StringTree fix: Comments were not ignored in quotes

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-11-05 16:35:41 +01:00
commit 7007c894b8
2 changed files with 8 additions and 8 deletions

View file

@ -11,7 +11,7 @@ def _cleanup_line(line):
else:
if c in [ '"', "'" ]:
in_quote = c
elif c == '#':
elif in_quote is None and c == '#':
return r.strip()
r += c
return r