From aa289fda8ab44ffe131ca3f1cde8c68e97e63c30 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 12 May 2020 10:42:24 +0100 Subject: [PATCH] Check for duplicate brackets in content --- content.py | 2 +- tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content.py b/content.py index e39befba..be1c7d39 100644 --- a/content.py +++ b/content.py @@ -362,7 +362,7 @@ def replaceContentDuplicates(content: str) -> str: content = content.replace('<<', '<') while '>>' in content: content = content.replace('>>', '>') - content = content.replace('<\p>', '') + content = content.replace('<\\p>', '') return content diff --git a/tests.py b/tests.py index 432771ed..ecd02fe6 100644 --- a/tests.py +++ b/tests.py @@ -1644,7 +1644,7 @@ def testWebLinks(): exampleText = \ '

filepopout=' + \ - 'TemplateAttachmentRichPopout<<\p>' + 'TemplateAttachmentRichPopout<<\\p>' resultText = replaceContentDuplicates(exampleText) assert resultText == \ '

filepopout=' + \