Skip to content

Commit 084b82f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c135c02 commit 084b82f

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

manim/mobject/text/tex_mobject.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,22 +366,28 @@ def _break_up_by_substrings(self) -> Self:
366366
# Handle consecutive scripts as a group
367367
script_group = [tex_string]
368368
j = i + 1
369-
while j < len(self.tex_strings) and self.tex_strings[j].strip().startswith(("^", "_")):
369+
while j < len(self.tex_strings) and self.tex_strings[
370+
j
371+
].strip().startswith(("^", "_")):
370372
script_group.append(self.tex_strings[j])
371373
j += 1
372374

373375
# Calculate total submobjects needed for all scripts
374376
total_script_submobs = sum(
375-
len(SingleStringMathTex(
376-
s,
377-
tex_environment=self.tex_environment,
378-
tex_template=self.tex_template,
379-
).submobjects)
377+
len(
378+
SingleStringMathTex(
379+
s,
380+
tex_environment=self.tex_environment,
381+
tex_template=self.tex_template,
382+
).submobjects
383+
)
380384
for s in script_group
381385
)
382386

383387
# Get the pool of available submobjects for all scripts
384-
script_pool = self.submobjects[curr_index:curr_index + total_script_submobs]
388+
script_pool = self.submobjects[
389+
curr_index : curr_index + total_script_submobs
390+
]
385391

386392
# Process each script in the group
387393
for script_tex in script_group:

0 commit comments

Comments
 (0)