diff --git a/manuskript/functions/__init__.py b/manuskript/functions/__init__.py index e5a0e6c..525c4fc 100644 --- a/manuskript/functions/__init__.py +++ b/manuskript/functions/__init__.py @@ -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 == '