From 488ef5b34d136765d5ed0203e4e6f267da3370ca Mon Sep 17 00:00:00 2001
From: Bob Mottram ' + lineStr + ' ' + lineStr + '')
+ lineStr = lineStr.replace('>', '
')
+ newContent += '
' + lineStr + '
' else: lineStr = lineStr.replace('>> ', '>') + lineStr = lineStr.replace('>', '' return newContent diff --git a/tests.py b/tests.py index 110c99be..95fd86f6 100644 --- a/tests.py +++ b/tests.py @@ -2149,6 +2149,16 @@ def testReplaceEmailQuote(): print('Expect: ' + expectedStr) assert resultStr == expectedStr + testStr = "
') newContent += '' + lineStr + '
Some text:
> first line->second line
" + \ + "Some question?
" + expectedStr = "Some text:
first line-
" + \ + "second line
Some question?
" + resultStr = htmlReplaceEmailQuote(testStr) + if resultStr != expectedStr: + print('Result: ' + resultStr) + print('Expect: ' + expectedStr) + assert resultStr == expectedStr + def runAllTests(): print('Running tests...')