Skip to content

Commit f28b9b5

Browse files
naveen521kkPgBiel
andauthored
compact
Co-authored-by: Pg Biel <[email protected]>
1 parent 4b47d7b commit f28b9b5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

manim/mobject/svg/text_mobject.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -842,11 +842,7 @@ def gen_chars(self):
842842
chars = VGroup()
843843
submobjects_char_index = 0
844844
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-
):
845+
if self.text[char_index] in (" ", "\t", "\n"):
850846
space = Dot(redius=0, fill_opacity=0, stroke_opacity=0)
851847
if char_index == 0:
852848
space.move_to(self.submobjects[submobjects_char_index].get_center())

0 commit comments

Comments
 (0)