From 3fe7a8c498813cde5d2132d5489426626cfd3fc9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 30 Sep 2020 23:55:53 +0100 Subject: [PATCH] Tidying --- content.py | 1 + tests.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/content.py b/content.py index a34ee002a..d1a170192 100644 --- a/content.py +++ b/content.py @@ -13,6 +13,7 @@ from utils import loadJson from utils import fileLastModified from utils import getLinkPrefixes + def removeQuotesWithinQuotes(content: str) -> str: """Removes any blockquote inside blockquote """ diff --git a/tests.py b/tests.py index 9166866bf..cc0a472c8 100644 --- a/tests.py +++ b/tests.py @@ -2146,7 +2146,12 @@ def testReplaceEmailQuote(): "> Text2
>
> Text3
" + \ ">
> Text4
>
> " + \ "Text5
>
> Text6

Text7

" - expectedStr = "

@somenick

Text1.

Text2

Text3
>
Text4

Text5

Text6

Text7

" + expectedStr = "

" + \ + "@somenick" + \ + "

Text1.

" + \ + "Text2

Text3
>
Text4
" + \ + "
Text5

Text6

Text7

" resultStr = htmlReplaceEmailQuote(testStr) if resultStr != expectedStr: print('Result: ' + str(resultStr))