From 6f8391f1c6bfd1c96f291a235fc354db8a9918ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 15 Sep 2017 00:03:02 +0200 Subject: [PATCH] m.math: apply https://github.com/tuxu/latex2svg/pull/1. Fixes crashes in some corner cases. --- pelican-plugins/m/latex2svg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican-plugins/m/latex2svg.py b/pelican-plugins/m/latex2svg.py index 92e223bc..f068f47e 100644 --- a/pelican-plugins/m/latex2svg.py +++ b/pelican-plugins/m/latex2svg.py @@ -131,7 +131,7 @@ def latex2svg(code, params=default_params, working_directory=None): return None, None def get_measure(output, name): - regex = r'\b%s=([0-9.]+)pt' % name + regex = r'\b%s=([0-9.e-]+)pt' % name match = re.search(regex, output) if match: return float(match.group(1)) / fontsize -- 2.30.2