mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 02:02:41 +02:00
Add - to allowed chars in HTML tag names
For example <annotation-xml> from MathML
This commit is contained in:
parent
c69ae1fac3
commit
fe84fd3519
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
|||
cdata_tags = cdataElements | rcdataElements
|
||||
normal_pat = re.compile(r'[^<>&]+')
|
||||
entity_pat = re.compile(r'&#{0,1}[a-zA-Z0-9]{1,8};')
|
||||
tag_name_pat = re.compile(r'/{0,1}[a-zA-Z0-9:]+')
|
||||
tag_name_pat = re.compile(r'/{0,1}[a-zA-Z0-9:-]+')
|
||||
space_chars = ' \t\r\n\u000c'
|
||||
attribute_name_pat = re.compile(r'''[^%s"'/><=]+''' % space_chars)
|
||||
self_closing_pat = re.compile(r'/\s*>')
|
||||
|
|
|
|||
Loading…
Reference in a new issue