From ae914abeac5d5527e1ada500fe7faf545fbb638c Mon Sep 17 00:00:00 2001 From: zyxw59 Date: Sat, 19 May 2018 20:50:53 -0400 Subject: Add missing comma in HTML_EMPTY Because of the missing comma, the last two tags in the list, `meta` and `param` are interpreted as a single string literal `"metaparam"`, so the serializer fails to correctly produce empty elements for `` and `` tags. --- markdown/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown/serializers.py b/markdown/serializers.py index 187d755..308cf7a 100644 --- a/markdown/serializers.py +++ b/markdown/serializers.py @@ -51,7 +51,7 @@ else: # pragma: no cover __all__ = ['to_html_string', 'to_xhtml_string'] HTML_EMPTY = ("area", "base", "basefont", "br", "col", "frame", "hr", - "img", "input", "isindex", "link", "meta" "param") + "img", "input", "isindex", "link", "meta", "param") try: HTML_EMPTY = set(HTML_EMPTY) -- cgit v1.2.3