Fix loading multi-line values from config

This commit is contained in:
shortcutme 2019-01-29 02:54:56 +01:00
parent e79e60f0bb
commit 0258d926a2
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 0 deletions

View File

@ -422,6 +422,8 @@ class Config(object):
if val:
for line in val.strip().split("\n"): # Allow multi-line values
argv_extend.append(line)
if "\n" in val:
argv_extend.append("--end")
argv = argv[:1] + argv_extend + argv[1:]
return argv