Fix #141733: bmesh.ops API docs not showing function names

Formatting changes in [0] broke doc-string extraction.

[0]: a5eb65bac8
This commit is contained in:
Campbell Barton
2025-07-11 14:44:09 +10:00
parent 4de536c114
commit d2a48cc12f

View File

@@ -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("/*"):