Skip to content

Commit fb5f7a8

Browse files
committed
Took out more rstrip() calls that are no longer neeeded
1 parent e74ba5e commit fb5f7a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3358,7 +3358,7 @@ def do_history(self, args: argparse.Namespace) -> Optional[bool]:
33583358
with os.fdopen(fd, 'w') as fobj:
33593359
for command in history:
33603360
if command.statement.multiline_command:
3361-
fobj.write('{}\n'.format(command.expanded.rstrip()))
3361+
fobj.write('{}\n'.format(command.expanded))
33623362
else:
33633363
fobj.write('{}\n'.format(command.raw))
33643364
try:
@@ -3372,7 +3372,7 @@ def do_history(self, args: argparse.Namespace) -> Optional[bool]:
33723372
with open(os.path.expanduser(args.output_file), 'w') as fobj:
33733373
for item in history:
33743374
if item.statement.multiline_command:
3375-
fobj.write('{}\n'.format(item.expanded.rstrip()))
3375+
fobj.write('{}\n'.format(item.expanded))
33763376
else:
33773377
fobj.write('{}\n'.format(item.raw))
33783378
plural = 's' if len(history) > 1 else ''

0 commit comments

Comments
 (0)