From e98daace4c46d1e38157e57d261358cf41a40660 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 1 Jul 2004 17:56:02 +0000 Subject: [PATCH] Let's be more ASCII. --- src/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index c8a7efb6e..3d6b0052b 100755 --- a/src/utils.py +++ b/src/utils.py @@ -62,7 +62,8 @@ def normalizeWhitespace(s): class HtmlToText(sgmllib.SGMLParser): """Taken from some eff-bot code on c.l.p.""" - entitydefs = htmlentitydefs.entitydefs + entitydefs = htmlentitydefs.entitydefs.copy() + entitydefs['nbsp'] = ' ' def __init__(self, tagReplace=' '): self.data = [] self.tagReplace = tagReplace