(self, match)
| 311 | |
| 312 | # Internal -- convert entity or character reference |
| 313 | def _convert_ref(self, match): |
| 314 | if match.group(2): |
| 315 | return self.convert_charref(match.group(2)) or \ |
| 316 | '&#%s%s' % match.groups()[1:] |
| 317 | elif match.group(3): |
| 318 | return self.convert_entityref(match.group(1)) or \ |
| 319 | '&%s;' % match.group(1) |
| 320 | else: |
| 321 | return '&%s' % match.group(1) |
| 322 | |
| 323 | # Internal -- parse endtag |
| 324 | def parse_endtag(self, i): |
nothing calls this directly
no test coverage detected