paragraph

master
Bob Mottram 2019-07-15 15:30:38 +01:00
parent 64eb4212b7
commit 7a1a870e9e
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ def addMentions(baseDir: str,httpPrefix: str, \
domain=domain.split(':')[0]
followingFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/following.txt'
if not os.path.isfile(followingFilename):
return content
content=content.replace('\n','</p><p>')
content='<p>'+content+'</p>'
return content.replace('<p></p>','')
with open(followingFilename, "r") as f:
following = f.readlines()
for wordStr in words: