Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

I don't like this fix, but TexMobjects were breaking if the 'dot' part was left isolated

Grant Sanderson282dfeedde55
diff --git a/manimlib/mobject/svg/tex_mobject.py b/manimlib/mobject/svg/tex_mobject.py
index 3afd362eb..16687c858 100644
--- a/manimlib/mobject/svg/tex_mobject.py
+++ b/manimlib/mobject/svg/tex_mobject.py
@@ -66,6 +66,8 @@ class SingleStringTexMobject(SVGMobject):
# Need to add blank subscript or superscript
tex.endswith("_"),
tex.endswith("^"),
+ tex.endswith("\\ddot"),
+ tex.endswith("\\dot"),
])
if should_add_filler:
filler = "{\\quad}"