diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-10-05 15:37:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 15:37:47 +0300 |
commit | 26fe10f0b7f064bca4b58e218083b0dcba274335 (patch) | |
tree | cf0b4add27c92baaa747a5e49e40d85954682707 | |
parent | ad5e17beb304e1ddc67accd22c5d1115eb28e9d3 (diff) |
Fix disabling cross-references in pre-v3 C domain (#10890)
-rw-r--r-- | sphinx/domains/c.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/domains/c.py b/sphinx/domains/c.py index e12eabfdc..fc96ac367 100644 --- a/sphinx/domains/c.py +++ b/sphinx/domains/c.py @@ -3676,7 +3676,8 @@ class CXRefRole(XRefRole): return title, target def run(self) -> Tuple[List[Node], List[system_message]]: - if not self.env.config['c_allow_pre_v3']: + if not self.env.config['c_allow_pre_v3'] or self.disabled: + # workaround, remove entire method with c_allow_pre_v3 code return super().run() text = self.text.replace('\n', ' ') |