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:
parent
7a9fe3824f
commit
bf5f02a9e7
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue