mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 18:03:31 +01:00
StringTree fix: Comments were not ignored in quotes
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
07a328d9a8
commit
7007c894b8
2 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue