chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7b6650
)
m.math: escape more things in the regexp.
author
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 18 Jun 2018 23:26:01 +0000
(
01:26
+0200)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 18 Jun 2018 23:46:20 +0000
(
01:46
+0200)
pelican-plugins/latex2svgextra.py
patch
|
blob
|
history
diff --git
a/pelican-plugins/latex2svgextra.py
b/pelican-plugins/latex2svgextra.py
index a93be7af488ee134944dfcb03c6432209794c739..4a0d8699280f97f338bb0cddbe709526184c1dac 100644
(file)
--- 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'\?>
<!-- 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'>
""")