Trim space around keyword values
This commit is contained in:
parent
b2f4f6ac57
commit
144f2ce84f
1 changed files with 1 additions and 2 deletions
|
@ -111,8 +111,7 @@ func (d *Document) parseAffiliated(i int, stop stopFn) (int, Node) {
|
||||||
|
|
||||||
func parseKeyword(t token) Keyword {
|
func parseKeyword(t token) Keyword {
|
||||||
k, v := t.matches[2], t.matches[4]
|
k, v := t.matches[2], t.matches[4]
|
||||||
k = strings.ToUpper(k)
|
return Keyword{strings.ToUpper(k), strings.TrimSpace(v)}
|
||||||
return Keyword{k, v}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Document) newInclude(k Keyword) (int, Node) {
|
func (d *Document) newInclude(k Keyword) (int, Node) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue