Skip to content

Commit 76378ad

Browse files
committed
Another tweak to the URL text comparisons in tests.py
- Legacy-Id: 394
1 parent 1a9fa6f commit 76378ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def reduce(html):
2626
if html.count("<li>") > 5*html.count("</li>"):
2727
html = html.replace("<li>", "</li><li>")
2828
text = html2text(html)
29-
text = re.sub('\."', '".', text)
29+
text = text.replace('."', '".')
30+
text = text.replace(',"', '",')
3031
text = [ line.strip() for line in text.split("\n") ]
3132
return text
3233

0 commit comments

Comments
 (0)