Return an element of type `tag` with no children.
| 398 | |
| 399 | |
| 400 | class SubstituteTagInlineProcessor(SimpleTagInlineProcessor): |
| 401 | """ Return an element of type `tag` with no children. """ |
| 402 | def handleMatch(self, m: re.Match[str], data: str) -> tuple[etree.Element, int, int]: |
| 403 | """ Return empty [`Element`][xml.etree.ElementTree.Element] of type `tag`. """ |
| 404 | return etree.Element(self.tag), m.start(0), m.end(0) |
| 405 | |
| 406 | |
| 407 | class BacktickInlineProcessor(InlineProcessor): |
no outgoing calls
no test coverage detected