Skip to content

Commit 57fd4ab

Browse files
author
Matthias Koeppe
committed
src/sage_docbuild/conf.py: Do not merge inline tabs of adjacent literal blocks
1 parent 5c8bfa1 commit 57fd4ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sage_docbuild/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,10 @@ def apply(self):
833833
from sphinx_inline_tabs._impl import TabContainer
834834
parent = node.parent
835835
index = parent.index(node)
836+
if isinstance(node.previous_sibling(), TabContainer):
837+
# Make sure not to merge inline tabs for adjacent literal blocks
838+
parent.insert(index, Text(''))
839+
index += 1
836840
parent.remove(node)
837841
# Tab for Sage code
838842
container = TabContainer("", type="tab", new_set=False)

0 commit comments

Comments
 (0)