From 7a1a870e9e59b56f1870a793a199d8645ba8b617 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Jul 2019 15:30:38 +0100 Subject: [PATCH] paragraph --- content.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content.py b/content.py index a78ca914..f9ea8f11 100644 --- a/content.py +++ b/content.py @@ -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','

') + content='

'+content+'

' + return content.replace('

','') with open(followingFilename, "r") as f: following = f.readlines() for wordStr in words: