diff options
author | 2021-09-01 15:44:35 +0100 | |
---|---|---|
committer | 2021-09-01 15:44:35 +0100 | |
commit | ca15abb76ccb6662e419503eae21d312d28df3b3 (patch) | |
tree | 1e006ea6265a277437642748d10d1df53631db6e | |
parent | Start and end codeblocks with newlines to avoid android rendering them inline (diff) |
Improved consistency for codeblocks to end with a newline
-rw-r--r-- | bot/exts/evergreen/cheatsheet.py | 4 | ||||
-rw-r--r-- | bot/exts/evergreen/snakes/_utils.py | 60 |
2 files changed, 34 insertions, 30 deletions
diff --git a/bot/exts/evergreen/cheatsheet.py b/bot/exts/evergreen/cheatsheet.py index ae7793c9..c45f9893 100644 --- a/bot/exts/evergreen/cheatsheet.py +++ b/bot/exts/evergreen/cheatsheet.py @@ -64,13 +64,13 @@ class CheatSheet(commands.Cog): description = ( f"**Result Of cht.sh**\n" f"```python\n{body_text[:body_space]}\n" - f"... (truncated - too many lines)```\n" + f"... (truncated - too many lines)\n```\n" f"Full results: {url} " ) else: description = ( f"**Result Of cht.sh**\n" - f"```python\n{body_text}```\n" + f"```python\n{body_text}\n```\n" f"{url}" ) return False, description diff --git a/bot/exts/evergreen/snakes/_utils.py b/bot/exts/evergreen/snakes/_utils.py index 2c825c7c..a3ff3d12 100644 --- a/bot/exts/evergreen/snakes/_utils.py +++ b/bot/exts/evergreen/snakes/_utils.py @@ -18,37 +18,41 @@ from bot.constants import Roles SNAKE_RESOURCES = Path("bot/resources/snakes").absolute() h1 = r"""``` - ---- - ------ - /--------\ - |--------| - |--------| - \------/ - ----```""" + ---- + ------ +/--------\ +|--------| +|--------| + \------/ + ---- +```""" h2 = r"""``` - ---- - ------ - /---\-/--\ - |-----\--| - |--------| - \------/ - ----```""" + ---- + ------ +/---\-/--\ +|-----\--| +|--------| + \------/ + ---- +```""" h3 = r"""``` - ---- - ------ - /---\-/--\ - |-----\--| - |-----/--| - \----\-/ - ----```""" + ---- + ------ +/---\-/--\ +|-----\--| +|-----/--| + \----\-/ + ---- +```""" h4 = r"""``` - ----- - ----- \ - /--| /---\ - |--\ -\---| - |--\--/-- / - \------- / - ------```""" + ----- + ----- \ +/--| /---\ +|--\ -\---| +|--\--/-- / + \------- / + ------ +```""" stages = [h1, h2, h3, h4] snakes = { "Baby Python": "https://i.imgur.com/SYOcmSa.png", |