mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-12 14:14:00 -04:00
parent
35def0ae45
commit
b2a48dce58
@ -149,6 +149,7 @@ func (c *cssClassCollectorWriter) insertStandinHTMLElement(el string) (string, s
|
|||||||
if spacei != -1 {
|
if spacei != -1 {
|
||||||
tag = tag[:spacei]
|
tag = tag[:spacei]
|
||||||
}
|
}
|
||||||
|
tag = strings.Trim(tag, "\n ")
|
||||||
newv := strings.Replace(el, tag, "div", 1)
|
newv := strings.Replace(el, tag, "div", 1)
|
||||||
return newv, strings.ToLower(tag)
|
return newv, strings.ToLower(tag)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user