From 7279faaee85269c1601b6c7842010fc552d29a5a Mon Sep 17 00:00:00 2001 From: Kwankyu Lee Date: Mon, 18 Nov 2024 14:33:01 +0900 Subject: [PATCH] Add a small improvement --- src/sage_docbuild/conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sage_docbuild/conf.py b/src/sage_docbuild/conf.py index c4d1df3d23b..d90c2eb2dd1 100644 --- a/src/sage_docbuild/conf.py +++ b/src/sage_docbuild/conf.py @@ -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] @@ -1103,4 +1103,3 @@ def feature_tags(): for feature in all_features(): if feature.is_present(): yield 'feature_' + feature.name.replace('.', '_') -