summaryrefslogtreecommitdiffstats
path: root/htmlbuffer.py
diff options
context:
space:
mode:
Diffstat (limited to 'htmlbuffer.py')
-rw-r--r--htmlbuffer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/htmlbuffer.py b/htmlbuffer.py
index ae535543f..c027d739b 100644
--- a/htmlbuffer.py
+++ b/htmlbuffer.py
@@ -28,7 +28,8 @@ class HTMLBuffer(HTMLParser.HTMLParser):
entityRefMap = { 'copy': unichr(0xA9),
'lt': '<',
'gt': '>',
- 'quot': '"'}
+ 'quot': '"',
+ 'nbsp': ' '}
whiteSpaceNuker = re.compile(r"""\s+""", re.MULTILINE)
def __init__(self):
self.buffer = gtk.TextBuffer(None)