music links at end of function

master
Bob Mottram 2019-09-05 11:26:08 +01:00
parent 92a17cce93
commit 158465603e
1 changed files with 3 additions and 4 deletions

View File

@ -207,10 +207,8 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
"""
if content.startswith('<p>'):
return content
words=content.replace('\n',' --linebreak-- ').replace(',',' ').replace(';',' ').split(' ')
# add music tag if needed
content=addMusicTag(content,'nowplaying')
content=content.replace('\n',' --linebreak-- ')
words=content.replace(',',' ').replace(';',' ').split(' ')
# remove . for words which are not mentions
wordCtr=0
@ -265,6 +263,7 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
content=content.replace(wordStr,replaceStr)
content=addWebLinks(content)
content=addMusicTag(content,'nowplaying')
content=content.replace(' --linebreak-- ','</p><p>')
return '<p>'+content+'</p>'