Another tweak to the URL text comparisons in tests.py

- Legacy-Id: 394
This commit is contained in:
Henrik Levkowetz 2007-06-15 00:16:05 +00:00
parent 1a9fa6fda6
commit 76378ade5d

View file

@ -26,7 +26,8 @@ def reduce(html):
if html.count("<li>") > 5*html.count("</li>"): if html.count("<li>") > 5*html.count("</li>"):
html = html.replace("<li>", "</li><li>") html = html.replace("<li>", "</li><li>")
text = html2text(html) text = html2text(html)
text = re.sub('\."', '".', text) text = text.replace('."', '".')
text = text.replace(',"', '",')
text = [ line.strip() for line in text.split("\n") ] text = [ line.strip() for line in text.split("\n") ]
return text return text