mirror of
https://github.com/3b1b/manim.git
synced 2026-04-26 03:00:23 -04:00
Fixed bug for multipled braces being imbalanced
This commit is contained in:
@@ -102,10 +102,12 @@ class SingleStringTexMobject(SVGMobject):
|
||||
tex.count(char)
|
||||
for char in "{}"
|
||||
]
|
||||
if num_rights > num_lefts:
|
||||
while num_rights > num_lefts:
|
||||
tex = "{" + tex
|
||||
elif num_lefts > num_rights:
|
||||
num_lefts += 1
|
||||
while num_lefts > num_rights:
|
||||
tex = tex + "}"
|
||||
num_rights += 1
|
||||
return tex
|
||||
|
||||
def get_tex_string(self):
|
||||
|
||||
Reference in New Issue
Block a user