From 9e87367acb2d5a3cacde41450af7ad49c537ef6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Mon, 27 May 2013 16:48:29 +0200 Subject: [PATCH] HTMLCleaner middleware only removes comments with an space after the two colons --- minecraftcodex/herobrine/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraftcodex/herobrine/middleware.py b/minecraftcodex/herobrine/middleware.py index a3b9b18..72c7823 100644 --- a/minecraftcodex/herobrine/middleware.py +++ b/minecraftcodex/herobrine/middleware.py @@ -11,7 +11,7 @@ class HTMLCleanerMiddleware(object): # Remove spaces content = strip_spaces_between_tags(content) # Remove HTML comments - exp = re.compile('\') + exp = re.compile('\') content = exp.sub('', content) response.content = content return response