We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b47d7b commit f28b9b5Copy full SHA for f28b9b5
manim/mobject/svg/text_mobject.py
@@ -842,11 +842,7 @@ def gen_chars(self):
842
chars = VGroup()
843
submobjects_char_index = 0
844
for char_index in range(self.text.__len__()):
845
- if (
846
- self.text[char_index] == " "
847
- or self.text[char_index] == "\t"
848
- or self.text[char_index] == "\n"
849
- ):
+ if self.text[char_index] in (" ", "\t", "\n"):
850
space = Dot(redius=0, fill_opacity=0, stroke_opacity=0)
851
if char_index == 0:
852
space.move_to(self.submobjects[submobjects_char_index].get_center())
0 commit comments