summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
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