remove trim() on comments (to keep comment indentation)
This commit is contained in:
parent
73b953c35b
commit
69f7cb47b8
|
@ -74,10 +74,10 @@ func (d *decoder) Decode(v interface{}) error {
|
|||
// 2. comment
|
||||
if line[0] == '#' {
|
||||
l.Type = COMMENT
|
||||
l.Components = []string{strings.Trim(line[1:], " \t")}
|
||||
l.Components = []string{line[1:]}
|
||||
} else if line[0] == ';' {
|
||||
l.Type = COLONCOMMENT
|
||||
l.Components = []string{strings.Trim(line[1:], " \t")}
|
||||
l.Components = []string{line[1:]}
|
||||
} else if line[0] == '}' {
|
||||
l.Type = SECTIONEND
|
||||
if len(stack) < 1 {
|
||||
|
|
Loading…
Reference in New Issue