mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
strip tex strings so that they're easier to match
This commit is contained in:
@ -198,7 +198,8 @@ class TexMobject(SingleStringTexMobject):
|
||||
config = dict(self.CONFIG)
|
||||
config["alignment"] = ""
|
||||
for tex_string in self.tex_strings:
|
||||
if len(tex_string.strip()) == 0:
|
||||
tex_string = tex_string.strip()
|
||||
if len(tex_string) == 0:
|
||||
continue
|
||||
sub_tex_mob = SingleStringTexMobject(tex_string, **config)
|
||||
num_submobs = len(sub_tex_mob.submobjects)
|
||||
|
Reference in New Issue
Block a user