aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-01-01 17:54:50 +0100
committerGravatar GitHub <[email protected]>2019-01-01 17:54:50 +0100
commit259ea498d2cdf4206871c52196ade1b24b7e52bc (patch)
treec549a6cc8d4cbb03440109fc7e92941b1bf4e22a
parentMerge pull request #234 from python-discord/invite-filter-fix (diff)
parentMerge branch 'master' into eval-indent-fix (diff)
Merge pull request #242 from python-discord/eval-indent-fix
Corrects indent bug in internal eval introduced in #212
-rw-r--r--bot/cogs/eval.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/eval.py b/bot/cogs/eval.py
index 9e09b3aa0..8e97a35a2 100644
--- a/bot/cogs/eval.py
+++ b/bot/cogs/eval.py
@@ -68,7 +68,7 @@ class CodeEval:
# then we get the length
# and use `str.rjust()`
# to indent it.
- start = "...:".rjust(len(self.ln) + 2)
+ start = "...: ".rjust(len(str(self.ln)) + 7)
if i == len(lines) - 2:
if line.startswith("return"):