mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
strip tex strings so that they're easier to match
This commit is contained in:
parent
63692ed59a
commit
4a19c48667
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue