From e4c9636cf4765f46bffb84d7bedea2c0dde47e7b Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 17 May 2018 15:45:21 -0700 Subject: [PATCH] Whoops, turns out that clause was there for a good reason --- mobject/svg/tex_mobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobject/svg/tex_mobject.py b/mobject/svg/tex_mobject.py index c96905af..3c631820 100644 --- a/mobject/svg/tex_mobject.py +++ b/mobject/svg/tex_mobject.py @@ -86,7 +86,7 @@ class SingleStringTexMobject(SVGMobject): should_replace = reduce(op.and_, [ t1 in tex, t2 not in tex, - len(tex) > len(t1) + len(tex) > len(t1) and tex[len(t1)] in ["(){}[]|.\\"] ]) if should_replace: tex = tex.replace(t1, "\\big")