From 9b8ed569bb202da1c1a7e88eff32152730b3f322 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 8 Jun 2013 23:51:47 +0200 Subject: Fix the regex for text attributes --- src/xhtml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xhtml.py') diff --git a/src/xhtml.py b/src/xhtml.py index e34ea3e7..f95f3a15 100644 --- a/src/xhtml.py +++ b/src/xhtml.py @@ -180,7 +180,7 @@ log = logging.getLogger(__name__) whitespace_re = re.compile(r'\s+') -xhtml_attr_re = re.compile(r'\x19\d{0,3}\}|\x19[buaio]') +xhtml_attr_re = re.compile(r'\x19-?\d[^}]*}|\x19[buaio]') xhtml_simple_attr_re = re.compile(r'\x19\d') -- cgit v1.2.3