mirror of https://gitlab.com/bashrc2/epicyon
Replace all double spaces
parent
25270f1468
commit
7ba3b5bbf6
|
@ -375,7 +375,10 @@ def _postToSpeakerJson(baseDir: str, nickname: str, domain: str,
|
||||||
content = removeHtml(htmlReplaceQuoteMarks(content))
|
content = removeHtml(htmlReplaceQuoteMarks(content))
|
||||||
content = speakerReplaceLinks(content, translate, detectedLinks)
|
content = speakerReplaceLinks(content, translate, detectedLinks)
|
||||||
content = _speakerPronounce(baseDir, content, translate)
|
content = _speakerPronounce(baseDir, content, translate)
|
||||||
content = content.replace(' ', ' ').replace(' . ', '. ')
|
# replace all double spaces
|
||||||
|
while ' ' in content:
|
||||||
|
content = content.replace(' ', ' ')
|
||||||
|
content = content.replace(' . ', '. ')
|
||||||
|
|
||||||
imageDescription = ''
|
imageDescription = ''
|
||||||
if postJsonObject['object'].get('attachment'):
|
if postJsonObject['object'].get('attachment'):
|
||||||
|
|
Loading…
Reference in New Issue