mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 21:12:35 +08:00
Replace all unbalanced \left \right text in TexMobject
This commit is contained in:
@ -86,7 +86,7 @@ class SingleStringTexMobject(SVGMobject):
|
||||
should_replace = reduce(op.and_, [
|
||||
t1 in tex,
|
||||
t2 not in tex,
|
||||
len(tex) > len(t1) and tex[len(t1)] in "()[]<>|.\\"
|
||||
len(tex) > len(t1)
|
||||
])
|
||||
if should_replace:
|
||||
tex = tex.replace(t1, "\\big")
|
||||
|
Reference in New Issue
Block a user