From a6f97b81ce80806fa13adf647a99e2df71ba1e34 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Wed, 22 May 2024 18:25:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20do=20not=20close=20`input?= =?UTF-8?q?`=20tag=20(#195)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove closing tag from ``, since this is a void element: https://developer.mozilla.org/en-US/docs/Glossary/Void_element --- sphinx_design/tabs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sphinx_design/tabs.py b/sphinx_design/tabs.py index b9113f9..130241b 100644 --- a/sphinx_design/tabs.py +++ b/sphinx_design/tabs.py @@ -183,7 +183,9 @@ def visit_tab_input(self, node): def depart_tab_input(self, node): - self.body.append("") + # note do not add a closing tag, since this is a void element: + # https://developer.mozilla.org/en-US/docs/Glossary/Void_element + pass def visit_tab_label(self, node):