(match: re.Match[str])
| 58 | def handleAttributes(self, el: etree.Element, txt: str) -> str: |
| 59 | """ Set attributes and return text without definitions. """ |
| 60 | def attributeCallback(match: re.Match[str]): |
| 61 | el.set(sanitize_name(match.group(1)), match.group(2).replace('\n', ' ')) |
| 62 | return ATTR_RE.sub(attributeCallback, txt) |
| 63 | |
| 64 |
nothing calls this directly
no test coverage detected