Commit 3714c074 by James Cammarata

Split args on single spaces only

parent 19bdc92a
...@@ -75,7 +75,7 @@ def split_args(args): ...@@ -75,7 +75,7 @@ def split_args(args):
do_decode = True do_decode = True
except UnicodeDecodeError: except UnicodeDecodeError:
do_decode = False do_decode = False
tokens = args.split() tokens = args.split(' ')
# iterate over the tokens, and reassemble any that may have been # iterate over the tokens, and reassemble any that may have been
# split on a space inside a jinja2 block. # split on a space inside a jinja2 block.
...@@ -95,8 +95,6 @@ def split_args(args): ...@@ -95,8 +95,6 @@ def split_args(args):
# split occurred within quotes or a jinja2 block of some kind # split occurred within quotes or a jinja2 block of some kind
for token in tokens: for token in tokens:
token = token.strip()
# store the previous quoting state for checking later # store the previous quoting state for checking later
was_inside_quotes = inside_quotes was_inside_quotes = inside_quotes
quote_char = _get_quote_state(token, quote_char) quote_char = _get_quote_state(token, quote_char)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment