mirror of https://gitlab.com/bashrc2/epicyon
music links at end of function
parent
92a17cce93
commit
158465603e
|
@ -207,10 +207,8 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
|
||||||
"""
|
"""
|
||||||
if content.startswith('<p>'):
|
if content.startswith('<p>'):
|
||||||
return content
|
return content
|
||||||
words=content.replace('\n',' --linebreak-- ').replace(',',' ').replace(';',' ').split(' ')
|
content=content.replace('\n',' --linebreak-- ')
|
||||||
|
words=content.replace(',',' ').replace(';',' ').split(' ')
|
||||||
# add music tag if needed
|
|
||||||
content=addMusicTag(content,'nowplaying')
|
|
||||||
|
|
||||||
# remove . for words which are not mentions
|
# remove . for words which are not mentions
|
||||||
wordCtr=0
|
wordCtr=0
|
||||||
|
@ -265,6 +263,7 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
|
||||||
content=content.replace(wordStr,replaceStr)
|
content=content.replace(wordStr,replaceStr)
|
||||||
|
|
||||||
content=addWebLinks(content)
|
content=addWebLinks(content)
|
||||||
|
content=addMusicTag(content,'nowplaying')
|
||||||
content=content.replace(' --linebreak-- ','</p><p>')
|
content=content.replace(' --linebreak-- ','</p><p>')
|
||||||
return '<p>'+content+'</p>'
|
return '<p>'+content+'</p>'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue