Docs: Fix keywords with arbitrary number of values

This commit is contained in:
Ole Schütt 2025-02-14 11:20:43 +01:00 committed by Ole Schütt
parent 214901717e
commit fb643211e1

View file

@ -336,7 +336,7 @@ def render_keyword(
# Use Sphinx's py:data directive to document keywords.
output += [f"```{{py:data}} {canonical_name}"]
n_var_brackets = f"[{n_var}]" if n_var > 1 else ""
n_var_brackets = f"[{n_var}]" if n_var > 1 else "[ ]" if n_var == -1 else ""
if section_xref:
output += [f":module: {section_xref}"]
else: