diff --git a/flask_minify/about.py b/flask_minify/about.py index cb85a36..955d055 100644 --- a/flask_minify/about.py +++ b/flask_minify/about.py @@ -1,4 +1,4 @@ -__version__ = "0.41" +__version__ = "0.42" __doc__ = "Flask extension to minify html, css, js and less." __license__ = "MIT" __author__ = "Mohamed Feddad" diff --git a/flask_minify/parsers.py b/flask_minify/parsers.py index a91600e..f0ef5f7 100644 --- a/flask_minify/parsers.py +++ b/flask_minify/parsers.py @@ -43,6 +43,7 @@ class Html(ParserMixin): runtime_options = _o = { "remove_comments": True, "remove_optional_attribute_quotes": False, + "remove_empty_space": True, "only_html_content": False, "script_types": [], "minify_inline": _default_tags, diff --git a/tests/constants.py b/tests/constants.py index 7bfb84f..fe9321d 100644 --- a/tests/constants.py +++ b/tests/constants.py @@ -82,7 +82,7 @@ ] ) -MINIFED_HTML = b"

HTML

" +MINIFED_HTML = b"

HTML

" MINIFIED_JS = b'' @@ -107,13 +107,13 @@ MINIFED_HTML_EMBEDDED_TAGS = bytes( "".join( [ - " ", + "", MINIFIED_JS.decode("utf-8"), - ' ', + '', MINIFED_LESS.decode("utf-8"), - ' ', + '', MINIFIED_JS.decode("utf-8"), - ' ', + '', ] ).encode("utf-8") )