From 5e567665c4116e9cba27fe2268f158c82962913a Mon Sep 17 00:00:00 2001 From: j Date: Sun, 4 May 2008 16:05:43 +0200 Subject: [PATCH] fix space to be actually a space and not some unicode thing --- oxutils/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxutils/html.py b/oxutils/html.py index 1856a4d..6ed63f1 100644 --- a/oxutils/html.py +++ b/oxutils/html.py @@ -142,7 +142,7 @@ def htmldecode(text): return uchr(name2codepoint[entity]) else: return match.group(0) - return charrefpat.sub(entitydecode, text) + return charrefpat.sub(entitydecode, text).replace(u'\xa0', ' ') def highlight(text, query, hlClass="hl"): if query: