summaryrefslogtreecommitdiff
path: root/cmd2/history.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/history.py')
-rw-r--r--cmd2/history.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/history.py b/cmd2/history.py
index bbeb9199..7ec4ce7b 100644
--- a/cmd2/history.py
+++ b/cmd2/history.py
@@ -44,9 +44,9 @@ class HistoryItem():
:return: pretty print string version of a HistoryItem
"""
if verbose:
- ret_str = self._listformat.format(self.idx, self.raw)
+ ret_str = self._listformat.format(self.idx, self.raw.rstrip())
if self.raw != self.expanded.rstrip():
- ret_str += self._ex_listformat.format(self.idx, self.expanded)
+ ret_str += self._ex_listformat.format(self.idx, self.expanded.rstrip())
else:
if script:
# display without entry numbers