From 843a42171cf0c67294e990f3c70f8c0796c1b90b Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 5 Nov 2017 19:12:21 -0500 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20generate=20invalid=20closing=20?= =?UTF-8?q?=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are forbidden in HTML 4 and HTML5. https://www.w3.org/TR/html401/struct/links.html#edef-LINK https://www.w3.org/TR/html5/document-metadata.html#the-link-element Use self-closing syntax for XHTML compatibility. Signed-off-by: Anders Kaseorg --- pywebpack/manifests.py | 2 +- tests/test_manifest.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pywebpack/manifests.py b/pywebpack/manifests.py index a248f09..aba398c 100644 --- a/pywebpack/manifests.py +++ b/pywebpack/manifests.py @@ -78,7 +78,7 @@ class ManifestEntry(object): templates = { '.js': '', - '.css': '', + '.css': '', } def __init__(self, name, paths): diff --git a/tests/test_manifest.py b/tests/test_manifest.py index 1ac85cd..96eaab6 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -34,8 +34,8 @@ def test_render(exmanif): '' \ '' assert exmanif.styles.render() == exmanif['styles'].render() == \ - '' \ - '' + '' \ + '' def test_manifest_add_same_name():