(elem: et.Element)
| 56 | |
| 57 | |
| 58 | def 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 | |
| 72 | def convert_para(para_item: et.Element, indent_level: int) -> str: |
no test coverage detected