mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix editor echo not displaying correctly for lines with whitespace
This commit is contained in:
parent
c05714d0d4
commit
aed4c70583
2 changed files with 3 additions and 3 deletions
|
|
@ -414,7 +414,7 @@ class CmdLineInput(CmdEditorBase):
|
|||
|
||||
self.caller.msg("|b%02i|||n (|g%s|n) %s" % (cline, indent, raw(line)))
|
||||
else:
|
||||
self.caller.msg("|b%02i|||n %s" % (cline, raw(self.args)))
|
||||
self.caller.msg("|b%02i|||n %s" % (cline, raw(line)))
|
||||
|
||||
|
||||
class CmdEditorGroup(CmdEditorBase):
|
||||
|
|
|
|||
|
|
@ -168,13 +168,13 @@ class TestEvEditor(BaseEvenniaCommandTest):
|
|||
eveditor.CmdLineInput(),
|
||||
'First test "line".',
|
||||
raw_string='First test "line".',
|
||||
msg='01First test "line" .',
|
||||
msg='01First test "line".',
|
||||
)
|
||||
self.call(
|
||||
eveditor.CmdLineInput(),
|
||||
"Second 'line'.",
|
||||
raw_string="Second 'line'.",
|
||||
msg="02Second 'line' .",
|
||||
msg="02Second 'line'.",
|
||||
)
|
||||
self.assertEqual(
|
||||
self.char1.ndb._eveditor.get_buffer(), "First test \"line\".\nSecond 'line'."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue