"docs/zh_CN/CommunitySharings/TuningSystems.md" did not exist on "3394f2c399bf8248931eb7b9f559a8be52ad9a07"
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):
for choice in check_choices:
choice_has_whitespace = True if choice[0].isspace() else False
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:
......
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