From 3441d1e5abcd95ff9100905a9184400d590c600d Mon Sep 17 00:00:00 2001 From: kotfu Date: Mon, 23 Apr 2018 22:55:24 -0600 Subject: Multiline now working --- cmd2/parsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd2/parsing.py') diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 2c01fb70..ffeb8bbe 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -7,7 +7,7 @@ import shlex import cmd2 -BLANK_LINE = '\n\n' +BLANK_LINE = '\n' class Statement(str): """String subclass with additional attributes to store the results of parsing. @@ -91,7 +91,7 @@ class CommandParser(): # we have to do this before we shlex on whitespace because it # destroys all unquoted whitespace in the input terminator = None - if line[-2:] == BLANK_LINE: + if line[-1:] == BLANK_LINE: terminator = BLANK_LINE s = shlex.shlex(line, posix=False) -- cgit v1.2.1