From c7159d3843590fdc5e3c458334b3cd2c30f17fbd Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Tue, 3 Jun 2025 14:03:24 +0100
Subject: [PATCH] Tidying
---
content.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/content.py b/content.py
index f24f58493..850754a75 100644
--- a/content.py
+++ b/content.py
@@ -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-- ', '
')
return '
' + content + '
'