From 36b268ca818c1744aaffd40482a1d29d7dbcdc29 Mon Sep 17 00:00:00 2001 From: Vincent Le Goff Date: Sat, 11 Feb 2017 11:42:19 -0800 Subject: [PATCH] Leading spaces in the EvEditor are always taken into account --- evennia/utils/eveditor.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/evennia/utils/eveditor.py b/evennia/utils/eveditor.py index 5f04e9a3c0..ca4511f4b4 100644 --- a/evennia/utils/eveditor.py +++ b/evennia/utils/eveditor.py @@ -376,18 +376,15 @@ class CmdLineInput(CmdEditorBase): # add a line of text to buffer line = self.raw_string - print "Entered", repr(line) if not editor._code: if not buf: - buf = self.args + buf = line else: - buf = buf + "\n%s" % self.args + buf = buf + "\n%s" % line else: # if automatic indentation is active, add spaces if editor._indent >= 0: line = editor.deduce_indent(line, buf) - else: - line = self.args if not buf: buf = line