summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-17 16:48:36 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-17 16:48:36 -0400
commitbb2cee07c7fd701b3e817639ff16fb240406ad36 (patch)
tree3e99170b4fc6f424f46777f2af59fe79fe641b66 /cmd2
parent0d2afb71eb66a602678056a55b2a7a416116a957 (diff)
downloadcmd2-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')
-rw-r--r--cmd2/cmd2.py2
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