MCPcopy Create free account
hub / github.com/JSBSim-Team/jsbsim / convert_ref

Function convert_ref

python/Doxy2PyDocStrings.py:58–69  ·  view source on GitHub ↗
(elem: et.Element)

Source from the content-addressed store, hash-verified

56
57
58def convert_ref(elem: et.Element) -> str:
59 ref_item = elem.find("ref")
60 if ref_item is not None:
61 if ref_item.attrib["kindref"] == "compound" and ref_item.text in klasses:
62 ref_docstring = ":ref:`" + ref_item.text + "`"
63 else:
64 ref_docstring = ref_item.text
65 if elem.tail:
66 ref_docstring = concatenate_with_one_space(ref_docstring, elem.tail)
67 else:
68 ref_docstring = elem.text
69 return ref_docstring
70
71
72def convert_para(para_item: et.Element, indent_level: int) -> str:

Callers 1

convert_paraFunction · 0.85

Calls 1

Tested by

no test coverage detected