Utilities/Sphinx: Fix f-string formatting error

Versions of Python prior to 3.12 did not support nested quotes of
the same type in f-strings (see PEP 701). Use double quotes inside
the single-quote f-string.
This commit is contained in:
Kyle Edwards
2026-04-22 17:13:47 -04:00
parent 56bb4d0801
commit 340ea3c2ad

View File

@@ -617,7 +617,7 @@ class CMakeOptionXRefRole(OptionXRefRole):
super().__init__()
def __call__(self, typ, rawtext, text, *args, **kwargs):
content = f'{text} <{self.command} {re.split(r'[ =]', text)[0]}>'
content = f'{text} <{self.command} {re.split(r"[ =]", text)[0]}>'
return super().__call__('std:option', text, content, *args, **kwargs)