Commit d9b4ca7f authored by haileyschoelkopf's avatar haileyschoelkopf
Browse files

fix bug when target_delimiter is empty string

parent ff148cd8
...@@ -689,7 +689,10 @@ class ConfigurableTask(Task): ...@@ -689,7 +689,10 @@ class ConfigurableTask(Task):
for choice in check_choices: for choice in check_choices:
choice_has_whitespace = True if choice[0].isspace() else False choice_has_whitespace = True if choice[0].isspace() else False
delimiter_has_whitespace = ( delimiter_has_whitespace = (
True if self.config.target_delimiter[-1].isspace() else False True
if self.config.target_delimiter.rstrip()
== self.config.target_delimiter
else False
) )
if delimiter_has_whitespace and choice_has_whitespace: if delimiter_has_whitespace and choice_has_whitespace:
......
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