projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35def0a
)
Trim whitespace in elements written to hugo_stats.json
author
Pavlo Matiash
<paul.matyash@gmail.com>
Mon, 1 Feb 2021 08:32:39 +0000
(10:32 +0200)
committer
GitHub
<noreply@github.com>
Mon, 1 Feb 2021 08:32:39 +0000
(09:32 +0100)
Fixes #7958
publisher/htmlElementsCollector.go
patch
|
blob
|
history
diff --git
a/publisher/htmlElementsCollector.go
b/publisher/htmlElementsCollector.go
index ace5a78b4f13cbe0adf3f8730ceb546995f3795f..1823a832776a234f3eee574e867147cefeb71ab1 100644
(file)
--- a/
publisher/htmlElementsCollector.go
+++ b/
publisher/htmlElementsCollector.go
@@
-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)
}