wmlindent: don't begin string concatenation if the line is commented out
Fixes a bug reported by Toranks.
This commit is contained in:
parent
11fdf19e58
commit
c78cc7a2b0
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ def reindent(name, infp, outfp):
|
|||
# May need to indent based on the line we just saw.
|
||||
if opener(transformed):
|
||||
indent_level += 1
|
||||
if continued_string.search(transformed):
|
||||
if continued_string.search(transformed) and not (transformed.startswith("#")):
|
||||
if not instring:
|
||||
indent_level += 1
|
||||
instring = True
|
||||
|
|
Loading…
Add table
Reference in a new issue