Skip to content

Commit

Permalink
Add a small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Nov 18, 2024
1 parent 60fdd03 commit 7279faa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage_docbuild/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ def apply(self):
parent = node.parent
index = parent.index(node)
prev_node = node.previous_sibling()
if isinstance(node.previous_sibling(), TabContainer):
if isinstance(prev_node, TabContainer):
# Make sure not to merge inline tabs for adjacent literal blocks
parent.insert(index, nodes.paragraph())
prev_node = parent[index]
Expand Down Expand Up @@ -1103,4 +1103,3 @@ def feature_tags():
for feature in all_features():
if feature.is_present():
yield 'feature_' + feature.name.replace('.', '_')

0 comments on commit 7279faa

Please sign in to comment.