Preserve line endings for speaker

main
Bob Mottram 2021-03-02 23:06:31 +00:00
parent b324d7ab82
commit b64f7e1bfa
1 changed files with 1 additions and 0 deletions

View File

@ -2167,6 +2167,7 @@ def _updateSpeaker(baseDir: str, nickname: str, domain: str,
detectedLinks = []
content = urllib.parse.unquote_plus(postJsonObject['object']['content'])
content = html.unescape(content)
content = content.replace('<p>', '').replace('</p>', ' ')
content = removeHtml(htmlReplaceQuoteMarks(content))
content = speakerReplaceLinks(content, translate, detectedLinks)
content = speakerPronounce(baseDir, content, translate)