From 90d0db74cdadc2c5050454b29891c6186b5358a1 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 6 Jul 2011 19:25:47 +0530 Subject: [PATCH] modify html parser regex --- edgware/editor/templatetags/alter_size.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edgware/editor/templatetags/alter_size.py b/edgware/editor/templatetags/alter_size.py index d975eca..9ddd908 100644 --- a/edgware/editor/templatetags/alter_size.py +++ b/edgware/editor/templatetags/alter_size.py @@ -20,7 +20,7 @@ def parse_html(value, m): >>>parse_html("foo is 20px", 4) >>>"foo is 80px" """ - p = "font\-size: [0-9][0-9]?px" + p = "font\-size:[\s]?[0-9][0-9]?px" matches = re.findall(p, value) for match in matches: # reg = r'font-size:[\s?]