Fix editor echo not displaying correctly for lines with whitespace

This commit is contained in:
Chiizujin 2024-03-31 01:25:50 +11:00
parent c05714d0d4
commit aed4c70583
2 changed files with 3 additions and 3 deletions

View file

@ -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):

View file

@ -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'."