Strip title

This commit is contained in:
bashrc committed 2020-11-18 22:08:17 +00:00
1 parent 745ca8d9c4
commit 38b072c32a
1 file changed
+4 -2
+4 -2
View File
@@ -221,7 +221,8 @@ def htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
totalVotesStr = \
votesIndicator(totalVotes, positiveVoting)
title = removeLongWords(item[0], 16, []).replace('\n', '<br>')
title = \
removeLongWords(item[0], 16, []).replace('\n', '<br>').strip()
if not title:
continue
htmlStr += '<p class="newswireItemVotedOn">' + \
@@ -249,7 +250,8 @@ def htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
totalVotesStr = \
votesIndicator(totalVotes, positiveVoting)
title = removeLongWords(item[0], 16, []).replace('\n', '<br>')
title = \
removeLongWords(item[0], 16, []).replace('\n', '<br>').strip()
if not title:
continue
if moderator and moderatedItem: