PyDoc: Use em dash instead of comma for enum items

This commit is contained in:
Aaron Carlisle 2021-05-29 12:16:13 -04:00
parent 870aaf3fb6
commit f5d14e36e8
1 changed files with 1 additions and 1 deletions

View File

@ -1246,7 +1246,7 @@ def pyrna_enum2sphinx(prop, use_empty_descriptions=False):
"%s.\n" % (
identifier,
# Account for multi-line enum descriptions, allowing this to be a block of text.
indent(", ".join(escape_rst(val) for val in (name, description) if val) or "Undocumented", " "),
indent(" -- ".join(escape_rst(val) for val in (name, description) if val) or "Undocumented", " "),
)
for identifier, name, description in prop.enum_items
])