From: Vladimír Vondruš Date: Mon, 18 Jun 2018 23:26:19 +0000 (+0200) Subject: m.math: mark private variable as private. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=c2f5df6f37becf1abb3334952674953c72ed3d28;p=blog.git m.math: mark private variable as private. --- diff --git a/pelican-plugins/latex2svgextra.py b/pelican-plugins/latex2svgextra.py index 4a0d8699..a71a2a03 100644 --- a/pelican-plugins/latex2svgextra.py +++ b/pelican-plugins/latex2svgextra.py @@ -82,7 +82,7 @@ _patch_dst = r""" id|xlink:href)='(?P#?)(?Pg\d+-\d+|page\d+)'""") _unique_dst = r"""\g='\geq{counter}-\g'""" @@ -154,8 +154,8 @@ def patch(formula, svg, depth, attribs): else: style = ' vertical-align: -{:.3f}em;'.format(depth*1.25) def repl(match): return _patch_dst.format( - width=pt2em*float(match.group('width')), - height=pt2em*float(match.group('height')), + width=_pt2em*float(match.group('width')), + height=_pt2em*float(match.group('height')), style=style, viewBox=match.group('viewBox'), attribs=attribs,