chiark / gitweb /
m.math: escape more things in the regexp.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 18 Jun 2018 23:26:01 +0000 (01:26 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 18 Jun 2018 23:46:20 +0000 (01:46 +0200)
pelican-plugins/latex2svgextra.py

index a93be7af488ee134944dfcb03c6432209794c739..4a0d8699280f97f338bb0cddbe709526184c1dac 100644 (file)
@@ -68,7 +68,7 @@ _class_mapping = {
     ('fill=\'#cafe09\'', 'class=\'m-dim\'')
 }
 
-_patch_src = re.compile(r"""<\?xml version='1.0' encoding='UTF-8'\?>
+_patch_src = re.compile(r"""<\?xml version='1\.0' encoding='UTF-8'\?>
 <!-- This file was generated by dvisvgm \d+\.\d+\.\d+ -->
 <svg height='(?P<height>[^']+)pt' version='1.1' viewBox='(?P<viewBox>[^']+)' width='(?P<width>[^']+)pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
 """)