From d2a48cc12fa7615aa8a3e5ef3c32f8e582a3b0d8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 11 Jul 2025 14:44:09 +1000 Subject: [PATCH] Fix #141733: bmesh.ops API docs not showing function names Formatting changes in [0] broke doc-string extraction. [0]: a5eb65bac88b77f4e714721d88782c88a890db22 --- doc/python_api/rst_from_bmesh_opdefines.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/python_api/rst_from_bmesh_opdefines.py b/doc/python_api/rst_from_bmesh_opdefines.py index c634b140a3d..ad7cc3bdf0c 100644 --- a/doc/python_api/rst_from_bmesh_opdefines.py +++ b/doc/python_api/rst_from_bmesh_opdefines.py @@ -165,9 +165,12 @@ def main(): l = l.replace("}", ")") # Skip `exec` & `init` functions. eg: `/*exec*/ bmo_rotate_edges_exec`, - if l.startswith("/*exec*/ "): + if l.startswith("/*opname*/"): + l = l.removeprefix("/*opname*/") + + elif l.startswith("/*exec*/"): l = "None," - elif l.startswith("/*init*/ "): + elif l.startswith("/*init*/"): l = "None," else: if l.startswith("/*"):