Skip to content

Commit 26fe10f

Browse files
authored
Fix disabling cross-references in pre-v3 C domain (#10890)
1 parent ad5e17b commit 26fe10f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinx/domains/c.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3676,7 +3676,8 @@ def process_link(self, env: BuildEnvironment, refnode: Element,
36763676
return title, target
36773677

36783678
def run(self) -> Tuple[List[Node], List[system_message]]:
3679-
if not self.env.config['c_allow_pre_v3']:
3679+
if not self.env.config['c_allow_pre_v3'] or self.disabled:
3680+
# workaround, remove entire method with c_allow_pre_v3 code
36803681
return super().run()
36813682

36823683
text = self.text.replace('\n', ' ')

0 commit comments

Comments
 (0)