From 1b24bc664ac1682c655987d97b21475c78a0e033 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Oct 2020 12:03:29 +0000 Subject: [PATCH] Only html format quotes if there are a few If there are lots then things can get out of hand --- content.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content.py b/content.py index 5676bdcd0..ef1113222 100644 --- a/content.py +++ b/content.py @@ -103,6 +103,12 @@ def htmlReplaceQuoteMarks(content: str) -> str: if '"' not in content: return content + # only if there are a few quote marks + if content.count('"') > 4: + return content + if content.count('"') > 4: + return content + newContent = content if '"' in content: sections = content.split('"')