File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1- ## 0.9.13 (TBD, 2019)
1+ ## 0.9.13 (June TBD, 2019)
22* Bug Fixes
33 * Fixed issue where the wrong terminator was being appended by ` Statement.expanded_command_line() `
44 * Fixed issue where aliases and macros could not contain terminator characters in their values
Original file line number Diff line number Diff line change @@ -281,6 +281,18 @@ def parser():
281281 return parser
282282
283283def test_multiline_histitem (parser ):
284+ from cmd2 .history import History
285+ line = 'multiline foo\n bar\n \n '
286+ statement = parser .parse (line )
287+ history = History ()
288+ history .append (statement )
289+ assert len (history ) == 1
290+ hist_item = history [0 ]
291+ assert hist_item .raw == line
292+ pr_lines = hist_item .pr ().splitlines ()
293+ assert pr_lines [0 ].endswith ('multiline foo bar' )
294+
295+ def test_multiline_histitem_verbose (parser ):
284296 from cmd2 .history import History
285297 line = 'multiline foo\n bar\n \n '
286298 statement = parser .parse (line )
You can’t perform that action at this time.
0 commit comments