mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Fixed whitespace bug in HTML stripper.
This commit is contained in:
parent
fc20715427
commit
ebd8cfd210
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user