mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 00:06:30 +01:00
Leading spaces in the EvEditor are always taken into account
This commit is contained in:
parent
362e03a3f8
commit
36b268ca81
1 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue