mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
minifiers: Make keepWhitespace = false default for HTML (note)
Closes #9456
This commit is contained in:
@@ -35,7 +35,7 @@ var defaultTdewolffConfig = tdewolffConfig{
|
|||||||
KeepConditionalComments: true,
|
KeepConditionalComments: true,
|
||||||
KeepEndTags: true,
|
KeepEndTags: true,
|
||||||
KeepDefaultAttrVals: true,
|
KeepDefaultAttrVals: true,
|
||||||
KeepWhitespace: true,
|
KeepWhitespace: false,
|
||||||
},
|
},
|
||||||
CSS: css.Minifier{
|
CSS: css.Minifier{
|
||||||
Precision: 0,
|
Precision: 0,
|
||||||
|
@@ -191,7 +191,7 @@ func TestDecodeConfigDecimalIsNowPrecision(t *testing.T) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Issue 8771
|
// Issue 9456
|
||||||
func TestDecodeConfigKeepWhitespace(t *testing.T) {
|
func TestDecodeConfigKeepWhitespace(t *testing.T) {
|
||||||
c := qt.New(t)
|
c := qt.New(t)
|
||||||
v := config.New()
|
v := config.New()
|
||||||
@@ -214,7 +214,7 @@ func TestDecodeConfigKeepWhitespace(t *testing.T) {
|
|||||||
KeepDocumentTags: true,
|
KeepDocumentTags: true,
|
||||||
KeepEndTags: false,
|
KeepEndTags: false,
|
||||||
KeepQuotes: false,
|
KeepQuotes: false,
|
||||||
KeepWhitespace: true},
|
KeepWhitespace: false},
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user