From 76378ade5d3bc0f59b06890f7db8f2a0eefd01f4 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 15 Jun 2007 00:16:05 +0000 Subject: [PATCH] Another tweak to the URL text comparisons in tests.py - Legacy-Id: 394 --- ietf/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/tests.py b/ietf/tests.py index fd0158753..3b5ad9cbe 100644 --- a/ietf/tests.py +++ b/ietf/tests.py @@ -26,7 +26,8 @@ def reduce(html): if html.count("
  • ") > 5*html.count("
  • "): html = html.replace("
  • ", "
  • ") text = html2text(html) - text = re.sub('\."', '".', text) + text = text.replace('."', '".') + text = text.replace(',"', '",') text = [ line.strip() for line in text.split("\n") ] return text