diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-17 16:48:36 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-17 16:48:36 -0400 |
commit | bb2cee07c7fd701b3e817639ff16fb240406ad36 (patch) | |
tree | 3e99170b4fc6f424f46777f2af59fe79fe641b66 /cmd2/cmd2.py | |
parent | 0d2afb71eb66a602678056a55b2a7a416116a957 (diff) | |
download | cmd2-git-bb2cee07c7fd701b3e817639ff16fb240406ad36.tar.gz |
Fixed bug where multiline commands were having leading and ending spaces stripped.
This would mess up quoted strings that crossed multiple lines.
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 9e5f5d56..c8f2f9ff 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2204,7 +2204,7 @@ class Cmd(cmd.Cmd): else: line = 'eof' - return line.strip() + return line.rstrip('\r\n') def _cmdloop(self) -> None: """Repeatedly issue a prompt, accept input, parse an initial prefix |