Fixed whitespace bug in HTML stripper.

This commit is contained in:
Jeremy Fincher 2003-03-27 20:14:17 +00:00
parent fc20715427
commit ebd8cfd210

View File

@ -56,7 +56,7 @@ class HtmlToText(sgmllib.SGMLParser):
def getText(self): def getText(self):
text = ''.join(self.data).strip() text = ''.join(self.data).strip()
return ''.join(text.split()) # normalize whitespace return ' '.join(text.split()) # normalize whitespace
def htmlToText(s): def htmlToText(s):
x = HtmlToText() x = HtmlToText()