From ce1067d1a922c5b9953694390571cca68cda6a24 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 14 Sep 2020 13:17:11 +0100 Subject: [PATCH] Replace quotes --- content.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content.py b/content.py index 5f74c6f4..2fc75471 100644 --- a/content.py +++ b/content.py @@ -22,6 +22,10 @@ def htmlReplaceEmailQuote(content: str) -> str: if '"

' in content: content = content.replace('

"', '

') content = content.replace('"

', '

') + if '>\u201c' in content: + if '\u201d<' in content: + content = content.replace('>\u201c', '>
') + content = content.replace('\u201d<', '
<') # replace email style quote if '>> ' not in content: return content