summaryrefslogtreecommitdiff
path: root/cmd2/parsing.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-23 22:55:24 -0600
committerkotfu <kotfu@kotfu.net>2018-04-23 22:55:24 -0600
commit3441d1e5abcd95ff9100905a9184400d590c600d (patch)
tree37481ca9122980155f062af96f23a7343137ce12 /cmd2/parsing.py
parentc378b1da3c1533f538ae616e550dd4ffd270d85f (diff)
downloadcmd2-git-3441d1e5abcd95ff9100905a9184400d590c600d.tar.gz
Multiline now working
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r--cmd2/parsing.py4
1 files changed, 2 insertions, 2 deletions
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)