From e2db0d869dba1b19d331233fa8059251ea3ff213 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 12 Jun 2007 22:46:30 +0000 Subject: [PATCH] Compact spaces after \n conversion in soup2html. - Legacy-Id: 351 --- ietf/utils/soup2text.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ietf/utils/soup2text.py b/ietf/utils/soup2text.py index 614694a2c..9c6f9f33b 100755 --- a/ietf/utils/soup2text.py +++ b/ietf/utils/soup2text.py @@ -44,11 +44,9 @@ def para(words, pre): text = "".join(words) text = unescape(text) if not pre: - #print "*** Text to be wrapped:" - #print "["+text+"]" - text = re.sub("[\t ]+", " ", text) text = text.strip("\n") text = text.lstrip() + text = re.sub("[\t\n ]+", " ", text) text = textwrap.fill(text) return text