mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-02 12:02:25 +12:00
I think this reads slightly cleaner.
This commit is contained in:
parent
80e90b5ddc
commit
6f6abc6f65
|
@ -34,10 +34,9 @@ def wordCount(text):
|
|||
count = 0
|
||||
in_comment = False
|
||||
for word in words:
|
||||
if in_comment:
|
||||
if word == '-->':
|
||||
in_comment = False
|
||||
else:
|
||||
if in_comment and word == '-->':
|
||||
in_comment = False
|
||||
if not in_comment:
|
||||
if word == '<!--':
|
||||
in_comment = True
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue