aboutsummaryrefslogtreecommitdiffhomepage
path: root/minifiers
diff options
context:
space:
mode:
authorvsopvsop <[email protected]>2018-08-25 14:19:15 +0530
committerBjørn Erik Pedersen <[email protected]>2018-08-25 10:49:15 +0200
commite6eda2a370aa1184e0afaf12e95dbd6f8b63ace5 (patch)
treee082bddd59d340a330abb4f0194e8b1c415c8dea /minifiers
parent66f688f7120560ca787c1a23e3e7fbc3aa617956 (diff)
downloadhugo-e6eda2a370aa1184e0afaf12e95dbd6f8b63ace5.tar.gz
hugo-e6eda2a370aa1184e0afaf12e95dbd6f8b63ace5.zip
minfiers: Keep end tags
Fixes #5112
Diffstat (limited to 'minifiers')
-rw-r--r--minifiers/minifiers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/minifiers/minifiers.go b/minifiers/minifiers.go
index c2f3ef6df..28058dcd8 100644
--- a/minifiers/minifiers.go
+++ b/minifiers/minifiers.go
@@ -67,6 +67,7 @@ func New(mediaTypes media.Types, outputFormats output.Formats) Client {
htmlMin := &html.Minifier{
KeepDocumentTags: true,
KeepConditionalComments: true,
+ KeepEndTags: true,
}
// We use the Type definition of the media types defined in the site if found.