Replace all double spaces

merge-requests/21/head
Bob Mottram 2021-03-04 16:09:11 +00:00
parent 25270f1468
commit 7ba3b5bbf6
1 changed files with 4 additions and 1 deletions

View File

@ -375,7 +375,10 @@ def _postToSpeakerJson(baseDir: str, nickname: str, domain: str,
content = removeHtml(htmlReplaceQuoteMarks(content))
content = speakerReplaceLinks(content, translate, detectedLinks)
content = _speakerPronounce(baseDir, content, translate)
content = content.replace(' ', ' ').replace(' . ', '. ')
# replace all double spaces
while ' ' in content:
content = content.replace(' ', ' ')
content = content.replace(' . ', '. ')
imageDescription = ''
if postJsonObject['object'].get('attachment'):