Let's be more ASCII.

This commit is contained in:
Jeremy Fincher 2004-07-01 17:56:02 +00:00
parent 032fbe4ae2
commit e98daace4c

View File

@ -62,7 +62,8 @@ def normalizeWhitespace(s):
class HtmlToText(sgmllib.SGMLParser): class HtmlToText(sgmllib.SGMLParser):
"""Taken from some eff-bot code on c.l.p.""" """Taken from some eff-bot code on c.l.p."""
entitydefs = htmlentitydefs.entitydefs entitydefs = htmlentitydefs.entitydefs.copy()
entitydefs['nbsp'] = ' '
def __init__(self, tagReplace=' '): def __init__(self, tagReplace=' '):
self.data = [] self.data = []
self.tagReplace = tagReplace self.tagReplace = tagReplace