diff --git a/ietf/utils/soup2text.py b/ietf/utils/soup2text.py index 6dde124eb..cda9e6ea8 100755 --- a/ietf/utils/soup2text.py +++ b/ietf/utils/soup2text.py @@ -106,6 +106,7 @@ def soup2text(html): # some preprocessing to handle common pathological cases html = re.sub("
[ \t\n]*(
)+", "

", html) html = re.sub("
([^\n])", r"
\n\1", html) + html = re.sub("(]*>)([^ \t\n])", r"\1 \2", html) soup = TextSoup(html) return str(soup)