Skip to content

Commit

Permalink
#7958 Trim all whitespace in elements written to hugo_stats.json
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatiash committed Jan 26, 2021
1 parent ed3071b commit 25ac9ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions publisher/htmlElementsCollector.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func (c *cssClassCollectorWriter) insertStandinHTMLElement(el string) (string, s
if spacei != -1 {
tag = tag[:spacei]
}
tag = strings.Trim(tag, "\n")
newv := strings.Replace(el, tag, "div", 1)
return newv, strings.ToLower(tag)
}
Expand Down

0 comments on commit 25ac9ce

Please sign in to comment.