mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
463192242f
commit
3fe7a8c498
|
@ -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
|
||||
"""
|
||||
|
|
7
tests.py
7
tests.py
|
@ -2146,7 +2146,12 @@ def testReplaceEmailQuote():
|
|||
"> Text2<br />> <br />> Text3<br />" + \
|
||||
"><br />> Text4<br />> <br />> " + \
|
||||
"Text5<br />> <br />> Text6</p><p>Text7</p>"
|
||||
expectedStr = "<p><span class=\"h-card\"><a href=\"https://somedomain/@somenick\" class=\"u-url mention\">@<span>somenick</span></a></span> </p><p><blockquote> Text1.<br /><br />Text2<br /><br />Text3<br />><br />Text4<br /><br />Text5<br /><br />Text6</blockquote></p><p>Text7</p>"
|
||||
expectedStr = "<p><span class=\"h-card\">" + \
|
||||
"<a href=\"https://somedomain/@somenick\" " + \
|
||||
"class=\"u-url mention\">@<span>somenick</span></a>" + \
|
||||
"</span> </p><p><blockquote> Text1.<br /><br />" + \
|
||||
"Text2<br /><br />Text3<br />><br />Text4<br />" + \
|
||||
"<br />Text5<br /><br />Text6</blockquote></p><p>Text7</p>"
|
||||
resultStr = htmlReplaceEmailQuote(testStr)
|
||||
if resultStr != expectedStr:
|
||||
print('Result: ' + str(resultStr))
|
||||
|
|
Loading…
Reference in New Issue