MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / _get_text

Method _get_text

python/Scripts/pybind_docs.py:122–126  ·  view source on GitHub ↗
(self, elem)

Source from the content-addressed store, hash-verified

120 return name if name.startswith("MaterialX::") else f"MaterialX::{name}"
121
122 def _get_text(self, elem) -> str:
123 if elem is None:
124 return ""
125 text = "".join(elem.itertext())
126 return re.sub(r"\s+", " ", text).strip()
127
128 def _extract_detail(self, elem, exclude_tags={"parameterlist", "simplesect"}) -> str:
129 if elem is None:

Callers 4

_extract_class_docMethod · 0.95
_extract_func_docMethod · 0.95
_extract_detailMethod · 0.95
_extract_paramsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected