A community-maintained Python framework for creating mathematical animations.
compact
Naveen M Kf28b9b549957
diff --git a/manim/mobject/svg/text_mobject.py b/manim/mobject/svg/text_mobject.pyindex 2456e9c6b..29d98e4b4 100644--- a/manim/mobject/svg/text_mobject.py+++ b/manim/mobject/svg/text_mobject.py@@ -842,11 +842,7 @@ class Text(SVGMobject):chars = VGroup()submobjects_char_index = 0for char_index in range(self.text.__len__()):- if (- self.text[char_index] == " "- or self.text[char_index] == "\t"- or self.text[char_index] == "\n"- ):+ if self.text[char_index] in (" ", "\t", "\n"):space = Dot(redius=0, fill_opacity=0, stroke_opacity=0)if char_index == 0:space.move_to(self.submobjects[submobjects_char_index].get_center())