Skip to content

Commit e2db0d8

Browse files
committed
Compact spaces after \n conversion in soup2html.
- Legacy-Id: 351
1 parent 44b76b7 commit e2db0d8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ietf/utils/soup2text.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ def para(words, pre):
4444
text = "".join(words)
4545
text = unescape(text)
4646
if not pre:
47-
#print "*** Text to be wrapped:"
48-
#print "["+text+"]"
49-
text = re.sub("[\t ]+", " ", text)
5047
text = text.strip("\n")
5148
text = text.lstrip()
49+
text = re.sub("[\t\n ]+", " ", text)
5250
text = textwrap.fill(text)
5351
return text
5452

0 commit comments

Comments
 (0)