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") )