Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 8, 2023
1 parent e62dd75 commit 73e19b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions manim_slides/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,11 @@ def load_template(self) -> str:
if isinstance(self.template, str):
with open(self.template, "r") as f:
return f.read()
return resources.files("manim_slides").joinpath("data/revealjs_template.html"
).read_text()
return (
resources.files("manim_slides")
.joinpath("data/revealjs_template.html")
.read_text()
)

def open(self, file: Path) -> bool:
return webbrowser.open(file.absolute().as_uri())
Expand Down

0 comments on commit 73e19b7

Please sign in to comment.