mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Correct indentation
This commit is contained in:
parent
6fdd74666d
commit
0f0d052166
2 changed files with 27 additions and 27 deletions
|
|
@ -353,19 +353,19 @@ class Table(VGroup):
|
|||
)
|
||||
line_group.add(line)
|
||||
self.add(line)
|
||||
if self.include_inner_lines:
|
||||
for k in range(len(self.mob_table) - 1):
|
||||
anchor = self.get_rows()[k + 1].get_top()[1] + 0.5 * (
|
||||
self.get_rows()[k].get_bottom()[1]
|
||||
- self.get_rows()[k + 1].get_top()[1]
|
||||
)
|
||||
line = Line(
|
||||
[anchor_left, anchor, 0],
|
||||
[anchor_right, anchor, 0],
|
||||
**self.line_config,
|
||||
)
|
||||
line_group.add(line)
|
||||
self.add(line)
|
||||
if self.include_inner_lines:
|
||||
for k in range(len(self.mob_table) - 1):
|
||||
anchor = self.get_rows()[k + 1].get_top()[1] + 0.5 * (
|
||||
self.get_rows()[k].get_bottom()[1]
|
||||
- self.get_rows()[k + 1].get_top()[1]
|
||||
)
|
||||
line = Line(
|
||||
[anchor_left, anchor, 0],
|
||||
[anchor_right, anchor, 0],
|
||||
**self.line_config,
|
||||
)
|
||||
line_group.add(line)
|
||||
self.add(line)
|
||||
self.horizontal_lines = line_group
|
||||
return self
|
||||
|
||||
|
|
@ -387,19 +387,19 @@ class Table(VGroup):
|
|||
)
|
||||
line_group.add(line)
|
||||
self.add(line)
|
||||
if self.include_inner_lines:
|
||||
for k in range(len(self.mob_table[0]) - 1):
|
||||
anchor = self.get_columns()[k + 1].get_left()[0] + 0.5 * (
|
||||
self.get_columns()[k].get_right()[0]
|
||||
- self.get_columns()[k + 1].get_left()[0]
|
||||
)
|
||||
line = Line(
|
||||
[anchor, anchor_bottom, 0],
|
||||
[anchor, anchor_top, 0],
|
||||
**self.line_config,
|
||||
)
|
||||
line_group.add(line)
|
||||
self.add(line)
|
||||
if self.include_inner_lines:
|
||||
for k in range(len(self.mob_table[0]) - 1):
|
||||
anchor = self.get_columns()[k + 1].get_left()[0] + 0.5 * (
|
||||
self.get_columns()[k].get_right()[0]
|
||||
- self.get_columns()[k + 1].get_left()[0]
|
||||
)
|
||||
line = Line(
|
||||
[anchor, anchor_bottom, 0],
|
||||
[anchor, anchor_top, 0],
|
||||
**self.line_config,
|
||||
)
|
||||
line_group.add(line)
|
||||
self.add(line)
|
||||
self.vertical_lines = line_group
|
||||
return self
|
||||
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ def open_file(file_path: Path, in_browser: bool = False) -> None:
|
|||
if current_os == "Windows":
|
||||
# The method os.startfile is only available in Windows,
|
||||
# ignoring type error caused by this.
|
||||
os.startfile(file_path if not in_browser else file_path.parent) # type: ignore[attr-defined]
|
||||
os.startfile(file_path if not in_browser else file_path.parent)
|
||||
else:
|
||||
if current_os == "Linux":
|
||||
commands = ["xdg-open"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue