From fc0d1ab8a5b81ad83326732676d7945bb961b086 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 19 Aug 2019 12:22:05 +0100 Subject: [PATCH] words list --- content.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content.py b/content.py index fd10f602..f5c5cffe 100644 --- a/content.py +++ b/content.py @@ -149,12 +149,12 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \ """ if content.startswith('

'): return content - words=content.replace(',',' ').replace(';',' ') + words=content.replace(',',' ').replace(';',' ').split(' ') # remove . for words which are not mentions wordCtr=0 newWords=[] - for wordIndex in range(0,len(words)-1): + for wordIndex in range(0,len(words)): wordStr=words[wordIndex] if wordStr.endswith('.'): if not wordStr.startswith('@'):