Remove any `c:tx[c:rich]` child, or do nothing if not present.
(self)
| 105 | ) |
| 106 | |
| 107 | def remove_tx_rich(self): |
| 108 | """ |
| 109 | Remove any `c:tx[c:rich]` child, or do nothing if not present. |
| 110 | """ |
| 111 | matches = self.xpath("c:tx[c:rich]") |
| 112 | if not matches: |
| 113 | return |
| 114 | tx = matches[0] |
| 115 | self.remove(tx) |
| 116 | |
| 117 | def _new_txPr(self): |
| 118 | return CT_TextBody.new_txPr() |
no test coverage detected