mako
mako copied to clipboard
strip `'` and `"` from config
note sure if a bug, but took some trial and error to figure it out what was wrong:
when converting from command line to the config file i noticed that the parser fails if e.g. the color is surrounded by quotes.
--border-color='#03E7B055' -> border-color='#03E7B055'
(also white spaces at the end of the line cause a fail)
Hmm, I'm not a fan of doing this.
(also white spaces at the end of the line cause a fail)
What do you mean by "fail"? Will it print an error and refuse to load the config file?
whitespaces:
it refuses to load with:
[config:1] Failed to parse option 'text-color'
which i guess is a quite confusing message.
Stripping end-of-line whitespace seems sensible as we're trimming whitespace around = anyway.
Error messages could be improved by printing the whole line.
Update: #177 hopefully improved this situation, but I'll leave this open until we do something about the whitespace.