Skip to content

Commit

Permalink
trim space on all u-* properties
Browse files Browse the repository at this point in the history
  • Loading branch information
willnorris committed Mar 16, 2020
1 parent fcc6962 commit d3ea80f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microformats.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ func (p *parser) walk(node *html.Node) {
}
if value == nil {
value = new(string)
*value = strings.TrimSpace(getTextContent(node, nil))
*value = getTextContent(node, nil)
}
if value != nil {
*value = expandURL(*value, p.base)
*value = strings.TrimSpace(expandURL(*value, p.base))
}
if curItem != nil && p.curItem != nil {
embedValue = getFirstPropValue(curItem, "url")
Expand Down

0 comments on commit d3ea80f

Please sign in to comment.