From a3f93df8a44bae5c905786f68ba04113d7b74f26 Mon Sep 17 00:00:00 2001
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Mon, 11 Jun 2007 18:56:43 +0000
Subject: [PATCH] Clear the diff when 2 ''lines'' are left, rather than 2
 ''words''.  - Legacy-Id: 318

---
 ietf/tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ietf/tests.py b/ietf/tests.py
index 6a02be77b..07cd75028 100644
--- a/ietf/tests.py
+++ b/ietf/tests.py
@@ -175,7 +175,7 @@ class UrlTestCase(TestCase):
                                     while re.search(chunk, diff):
                                         #print "*** Removing chunk of %s lines" % (len(chunk.split("\n")))
                                         diff = re.sub(chunk, "", diff)
-                                if len(diff.strip().split()) == 2:
+                                if len(diff.strip().splitlines()) == 2:
                                     # only the initial 2 lines of the diff remains --
                                     # discard them too
                                     diff = ""