Return [`Element`][xml.etree.ElementTree.Element] of type `tag` with the string in `group(2)` of a matching pattern as the Element's text.
(self, m: re.Match[str], data: str)
| 410 | """ The tag of the rendered element. """ |
| 411 | |
| 412 | def handleMatch(self, m: re.Match[str], data: str) -> tuple[etree.Element, int, int]: # pragma: no cover |
| 413 | """ |
| 414 | Return [`Element`][xml.etree.ElementTree.Element] of type `tag` with the string in `group(2)` of a |
| 415 | matching pattern as the Element's text. |
| 416 | """ |
| 417 | el = etree.Element(self.tag) |
| 418 | el.text = m.group(2) |
| 419 | return el, m.start(0), m.end(0) |
| 420 | |
| 421 | |
| 422 | class SubstituteTagPattern(SimpleTagPattern): # pragma: no cover |
nothing calls this directly
no outgoing calls
no test coverage detected