Skip to content

Commit

Permalink
Merge pull request #712 from mrf345/add-keep-special-comments-to-bind…
Browse files Browse the repository at this point in the history
…ings

Add keep-special-comments to bindings
  • Loading branch information
tdewolff authored Jun 9, 2024
2 parents f75995c + c625b71 commit b023a48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/js/minify.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func minifyConfig(ckeys **C.char, cvals **C.char, length C.longlong) *C.char {
htmlMinifier.KeepComments, err = strconv.ParseBool(vals[i])
case "html-keep-conditional-comments":
htmlMinifier.KeepConditionalComments, err = strconv.ParseBool(vals[i])
case "html-keep-special-comments":
htmlMinifier.KeepSpecialComments, err = strconv.ParseBool(vals[i])
case "html-keep-default-attr-vals":
htmlMinifier.KeepDefaultAttrVals, err = strconv.ParseBool(vals[i])
case "html-keep-document-tags":
Expand Down
2 changes: 2 additions & 0 deletions bindings/py/minify.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func minifyConfig(ckeys **C.char, cvals **C.char, length C.longlong) *C.char {
htmlMinifier.KeepComments, err = strconv.ParseBool(vals[i])
case "html-keep-conditional-comments":
htmlMinifier.KeepConditionalComments, err = strconv.ParseBool(vals[i])
case "html-keep-special-comments":
htmlMinifier.KeepSpecialComments, err = strconv.ParseBool(vals[i])
case "html-keep-default-attr-vals":
htmlMinifier.KeepDefaultAttrVals, err = strconv.ParseBool(vals[i])
case "html-keep-document-tags":
Expand Down

0 comments on commit b023a48

Please sign in to comment.