We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61cdc1e commit b15c02cCopy full SHA for b15c02c
1 file changed
ietf/utils/soup2text.py
@@ -106,6 +106,7 @@ def soup2text(html):
106
# some preprocessing to handle common pathological cases
107
html = re.sub("<br */?>[ \t\n]*(<br */?>)+", "<p/>", html)
108
html = re.sub("<br */?>([^\n])", r"<br />\n\1", html)
109
+ html = re.sub("(<t[hd][^>]*>)([^ \t\n])", r"\1 \2", html)
110
soup = TextSoup(html)
111
return str(soup)
112
0 commit comments