forked from indymedia/epicyon
words list
parent
7413536531
commit
fc0d1ab8a5
|
@ -149,12 +149,12 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
|
||||||
"""
|
"""
|
||||||
if content.startswith('<p>'):
|
if content.startswith('<p>'):
|
||||||
return content
|
return content
|
||||||
words=content.replace(',',' ').replace(';',' ')
|
words=content.replace(',',' ').replace(';',' ').split(' ')
|
||||||
|
|
||||||
# remove . for words which are not mentions
|
# remove . for words which are not mentions
|
||||||
wordCtr=0
|
wordCtr=0
|
||||||
newWords=[]
|
newWords=[]
|
||||||
for wordIndex in range(0,len(words)-1):
|
for wordIndex in range(0,len(words)):
|
||||||
wordStr=words[wordIndex]
|
wordStr=words[wordIndex]
|
||||||
if wordStr.endswith('.'):
|
if wordStr.endswith('.'):
|
||||||
if not wordStr.startswith('@'):
|
if not wordStr.startswith('@'):
|
||||||
|
|
Loading…
Reference in New Issue