diff options
author | Thorben Günther <admin@xenrox.net> | 2020-08-07 14:58:18 +0200 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-08-07 18:05:39 +0200 |
commit | bf5f02a9e72abbb80c66af38636c13a99363ad78 (patch) | |
tree | 9fe3f48eb52c4f14fb0ff3961d69693cd92f8bbb /config | |
parent | 7a9fe3824f49905f46700a4620cce97fdd32b3eb (diff) | |
download | aerc-bf5f02a9e72abbb80c66af38636c13a99363ad78.tar.gz |
stylesets: only accept comment char after whitespace
Without the option SpaceBeforeInlineComment set, go-ini will parse just a single " This lead to people being unable to specify hex color codes
Diffstat (limited to 'config')
-rw-r--r-- | config/style.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/style.go b/config/style.go index f159be3..9a8a00f 100644 --- a/config/style.go +++ b/config/style.go @@ -352,7 +352,10 @@ func (ss *StyleSet) LoadStyleSet(stylesetName string, stylesetDirs []string) err return err } - file, err := ini.Load(filepath) + var options ini.LoadOptions + options.SpaceBeforeInlineComment = true + + file, err := ini.LoadSources(options, filepath) if err != nil { return err } |