Indentation

merge-requests/30/head
Bob Mottram 2020-10-18 13:53:23 +01:00
parent 43096d087a
commit 574dc9d975
1 changed files with 58 additions and 57 deletions

View File

@ -289,6 +289,7 @@ def newswireHashtagProcessing(session, baseDir: str, postJsonObject: {},
"rel=\"tag\">#<span>" + \ "rel=\"tag\">#<span>" + \
htId + "</span></a>" htId + "</span></a>"
content = postJsonObject['object']['content'] content = postJsonObject['object']['content']
if hashtagHtml not in content:
if content.endswith('</p>'): if content.endswith('</p>'):
content = \ content = \
content[:len(content) - len('</p>')] + \ content[:len(content) - len('</p>')] + \