summaryrefslogtreecommitdiff
path: root/cmd2/parsing.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-19 02:58:05 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-19 02:58:05 -0400
commit373c4047665adb5a8a0b26cd25f0c370847b2e15 (patch)
treeb603a4a03cbe85c3a273f413ebe408c6e6c0a20e /cmd2/parsing.py
parent2beb3debc4dd9501b9578d3a2c4c61f679b4d50c (diff)
downloadcmd2-git-373c4047665adb5a8a0b26cd25f0c370847b2e15.tar.gz
No longer appending \n to commands run by PyscriptBridge. This messes up redirection parsing
of non-multiline commands.
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r--cmd2/parsing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py
index 2dc698b0..2af8a207 100644
--- a/cmd2/parsing.py
+++ b/cmd2/parsing.py
@@ -372,7 +372,7 @@ class StatementParser:
line = self._expand(line)
# check if this line is a comment
- if line.strip().startswith(constants.COMMENT_CHAR):
+ if line.lstrip().startswith(constants.COMMENT_CHAR):
return []
# split on whitespace