aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/evergreen/latex.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bot/exts/evergreen/latex.py b/bot/exts/evergreen/latex.py
index 442b6f7b..c4a8597c 100644
--- a/bot/exts/evergreen/latex.py
+++ b/bot/exts/evergreen/latex.py
@@ -39,8 +39,11 @@ class Latex(commands.Cog):
@staticmethod
def _render(text: str, filepath: pathlib.Path) -> BytesIO:
- """Return the rendered image if latex compiles without errors, otherwise raise a BadArgument Exception.
- Saves rendered image to cache."""
+ """
+ Return the rendered image if latex compiles without errors, otherwise raise a BadArgument Exception.
+
+ Saves rendered image to cache.
+ """
fig = plt.figure()
rendered_image = BytesIO()
fig.text(0, 1, text, horizontalalignment="left", verticalalignment="top")