diff --git a/manuskript/functions/__init__.py b/manuskript/functions/__init__.py index 525c4fc..fc65f9a 100644 --- a/manuskript/functions/__init__.py +++ b/manuskript/functions/__init__.py @@ -30,18 +30,7 @@ def safeTranslate(qApp, group, text): return text def wordCount(text): - words = re.findall(r"\S+", text) - count = 0 - in_comment = False - for word in words: - if in_comment and word == '-->': - in_comment = False - if not in_comment: - if word == ')", "", text))) def charCount(text, use_spaces = True):