Skip to content

Commit

Permalink
Fix disabling cross-references in pre-v3 C domain (#10890)
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Oct 5, 2022
1 parent ad5e17b commit 26fe10f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx/domains/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -3676,7 +3676,8 @@ def process_link(self, env: BuildEnvironment, refnode: Element,
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', ' ')
Expand Down

0 comments on commit 26fe10f

Please sign in to comment.