mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 09:48:09 +02:00
Ignore leading and trailing space around values when parsing config lines
This commit is contained in:
@@ -89,6 +89,7 @@ func (self *ConfigParser) parse(scanner Scanner, name, base_path_for_includes st
|
||||
continue
|
||||
}
|
||||
key, val, _ := strings.Cut(line, " ")
|
||||
val = strings.TrimSpace(val)
|
||||
switch key {
|
||||
default:
|
||||
err := self.LineHandler(key, val)
|
||||
|
||||
Reference in New Issue
Block a user