main
Bob Mottram 2025-06-03 14:03:24 +01:00
parent c663b3b8fa
commit c7159d3843
1 changed files with 5 additions and 2 deletions

View File

@ -1526,8 +1526,11 @@ def add_html_tags(base_dir: str, http_prefix: str,
content = html_replace_email_quote(content)
content = html_replace_quote_marks(content)
content = content.replace(' --openquote-- ', '')
content = content.replace(' --closequote-- ', '')
# undo replacements
for text, substitute in replacements.items():
if not substitute or text == '\n':
continue
content = content.replace(substitute, text)
content = content.replace(' --linebreak-- ', '</p><p>')
return '<p>' + content + '</p>'