[Bf-blender-cvs] [f5d14e36e8a] master: PyDoc: Use em dash instead of comma for enum items

Aaron Carlisle noreply at git.blender.org
Sat May 29 18:16:19 CEST 2021


Commit: f5d14e36e8a0974f90780924683b9db4909d8754
Author: Aaron Carlisle
Date:   Sat May 29 12:16:13 2021 -0400
Branches: master
https://developer.blender.org/rBf5d14e36e8a0974f90780924683b9db4909d8754

PyDoc: Use em dash instead of comma for enum items

===================================================================

M	doc/python_api/sphinx_doc_gen.py

===================================================================

diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index 032f8a86bd5..64a8ef64b23 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -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
         ])



More information about the Bf-blender-cvs mailing list