From: Vladimír Vondruš Date: Mon, 18 Jun 2018 23:26:01 +0000 (+0200) Subject: m.math: escape more things in the regexp. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=39b4e603b0b989fcace3d82d9284bc88b87bd6cf;p=blog.git m.math: escape more things in the regexp. --- diff --git a/pelican-plugins/latex2svgextra.py b/pelican-plugins/latex2svgextra.py index a93be7af..4a0d8699 100644 --- a/pelican-plugins/latex2svgextra.py +++ b/pelican-plugins/latex2svgextra.py @@ -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'\?> """)