summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xhtml.py2
1 files changed, 1 insertions, 1 deletions
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')