diff --git a/code_annotations/contrib/sphinx/extensions/featuretoggles.py b/code_annotations/contrib/sphinx/extensions/featuretoggles.py index 2394023..9ce68f9 100644 --- a/code_annotations/contrib/sphinx/extensions/featuretoggles.py +++ b/code_annotations/contrib/sphinx/extensions/featuretoggles.py @@ -111,7 +111,7 @@ def iter_nodes(self): for opt in optional_attrs: if toggle.get(f".. toggle_{opt}:") not in (None, "None", "n/a", "N/A"): toggle_section += nodes.paragraph( - text=f'{opt.title().replace("_"," ")}: {toggle[f".. toggle_{opt}:"]}', + text=f'{opt.title().replace("_", " ")}: {toggle[f".. toggle_{opt}:"]}', ids=[f"{opt}-{toggle_name}"], ) yield toggle_section