Fix #435.
This commit is contained in:
parent
27906a3754
commit
0deb4bd28b
@ -29,7 +29,7 @@ def _parse_comments(s):
|
|||||||
if len(flags) == 0:
|
if len(flags) == 0:
|
||||||
rv.append((text, text, text, ""))
|
rv.append((text, text, text, ""))
|
||||||
# parse 3-part comment, but ignore those with O flag
|
# parse 3-part comment, but ignore those with O flag
|
||||||
elif flags[0] == 's' and 'O' not in flags:
|
elif 's' in flags and 'O' not in flags:
|
||||||
ctriple = []
|
ctriple = []
|
||||||
indent = ""
|
indent = ""
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ def _parse_comments(s):
|
|||||||
ctriple.append(indent)
|
ctriple.append(indent)
|
||||||
|
|
||||||
rv.append(ctriple)
|
rv.append(ctriple)
|
||||||
elif flags[0] == 'b':
|
elif 'b' in flags:
|
||||||
if len(text) == 1:
|
if len(text) == 1:
|
||||||
rv.insert(0, (text,text,text, ""))
|
rv.insert(0, (text,text,text, ""))
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
|
Loading…
Reference in New Issue
Block a user