Strip title

main
Bob Mottram 2020-11-18 22:08:17 +00:00
parent 745ca8d9c4
commit 38b072c32a
1 changed files with 4 additions and 2 deletions

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: