From f6e7d85cb3cd36e566bbd9c6c4178f70afc4acd7 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Mon, 6 May 2019 03:22:21 -0400 Subject: Fixed issue where the wrong terminator was being appended by Statement.expanded_command_line() --- cmd2/parsing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cmd2/parsing.py') diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 2af8a207..a9e1a52f 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -201,9 +201,7 @@ class Statement(str): def expanded_command_line(self) -> str: """Contains command_and_args plus any ending terminator, suffix, and redirection chars""" rtn = self.command_and_args - if self.multiline_command: - rtn += constants.MULTILINE_TERMINATOR - elif self.terminator: + if self.terminator: rtn += self.terminator if self.suffix: -- cgit v1.2.1