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
This commit is contained in:
Thorben Günther 2020-08-07 14:58:18 +02:00 committed by Reto Brunner
parent 7a9fe3824f
commit bf5f02a9e7
1 changed files with 4 additions and 1 deletions

View File

@ -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
}