diff --git a/content.py b/content.py index 9095e509..d5a46178 100644 --- a/content.py +++ b/content.py @@ -156,9 +156,9 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \ wordStr=words[wordIndex] if wordStr.endswith('.'): if not wordStr.startswith('@'): - words[wordIndex]=words[wordIndex][:-1] + words[wordIndex]=wordStr[:-1] if wordStr.startswith('.'): - words[wordIndex]=words[wordIndex][1:] + words[wordIndex]=wordStr[1:] replaceMentions={} replaceHashTags={} replaceEmoji={}