diff --git a/ietf/tests.py b/ietf/tests.py
index 84579d348..bc4e866e2 100644
--- a/ietf/tests.py
+++ b/ietf/tests.py
@@ -76,12 +76,6 @@ def filetext(filename):
file.close()
return chunk
-def filetime(name):
- if os.path.exists(name):
- return os.stat(name)[stat.ST_MTIME]
- else:
- return 0
-
class UrlTestCase(TestCase):
def setUp(self):
from django.test.client import Client
diff --git a/ietf/utils/soup2text.py b/ietf/utils/soup2text.py
index 3e7a50af0..f93de65f3 100755
--- a/ietf/utils/soup2text.py
+++ b/ietf/utils/soup2text.py
@@ -98,8 +98,10 @@ class TextSoup(BeautifulSoup):
return str
def soup2text(html):
+ # Line ending normalization
+ html = html.replace("\r\n", "\n").replace("\r", "\n")
# some preprocessing to handle common pathological cases
- html = re.sub("
[ \t\r\n]*(
)+", "