(self, data: str)
| 289 | return any(re.search(r'</\s*{}\s*>'.format(re.escape(tag)), rest, re.I) for tag in self.inline_stack) |
| 290 | |
| 291 | def handle_data(self, data: str): |
| 292 | if self.intail and '\n' in data: |
| 293 | self.intail = False |
| 294 | if self.inraw: |
| 295 | self._cache.append(data) |
| 296 | else: |
| 297 | if inner_blank_line_re.search(data): |
| 298 | # A blank line ends the paragraph, so open inline tags no longer enclose what follows. |
| 299 | self.inline_stack = [] |
| 300 | self.cleandoc.append(data) |
| 301 | |
| 302 | def handle_empty_tag(self, data: str, is_block: bool): |
| 303 | """ Handle empty tags (`<data>`). """ |
no test coverage detected