diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-12-10 14:31:46 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-12-10 14:31:46 -0500 |
commit | fb5f7a80ce50139ea99bbf6a0d8aa8df7c3db453 (patch) | |
tree | a275a9c35a8196d0bbcc9b7e6edb4c3c73a3977e | |
parent | e74ba5ee32f69d6aa3cedd3131bc6ed25ea6b8ec (diff) | |
download | cmd2-git-fb5f7a80ce50139ea99bbf6a0d8aa8df7c3db453.tar.gz |
Took out more rstrip() calls that are no longer neeeded
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 28a9dedb..6c4fdcbd 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3358,7 +3358,7 @@ class Cmd(cmd.Cmd): with os.fdopen(fd, 'w') as fobj: for command in history: if command.statement.multiline_command: - fobj.write('{}\n'.format(command.expanded.rstrip())) + fobj.write('{}\n'.format(command.expanded)) else: fobj.write('{}\n'.format(command.raw)) try: @@ -3372,7 +3372,7 @@ class Cmd(cmd.Cmd): with open(os.path.expanduser(args.output_file), 'w') as fobj: for item in history: if item.statement.multiline_command: - fobj.write('{}\n'.format(item.expanded.rstrip())) + fobj.write('{}\n'.format(item.expanded)) else: fobj.write('{}\n'.format(item.raw)) plural = 's' if len(history) > 1 else '' |