Skip to content

Commit

Permalink
Merge pull request #47 from nineteendo/nineteendo-patch-1
Browse files Browse the repository at this point in the history
Use empty tag #46
  • Loading branch information
pradyunsg authored Sep 12, 2024
2 parents 5bb7a4b + f8d2037 commit 12a2ee2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sphinx_inline_tabs/_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ def visit(translator, node):
attributes.pop("dupnames")
attributes.pop("backrefs")

text = translator.starttag(node, node._tagname, **attributes)
if node._endtag:
text = translator.starttag(node, node._tagname, **attributes)
else:
text = translator.emptytag(node, node._tagname, **attributes)

translator.body.append(text.strip())

@staticmethod
Expand Down

0 comments on commit 12a2ee2

Please sign in to comment.