Crawl the footnote div and add missing duplicate footnotes.
(self, root: etree.Element)
| 405 | self.add_duplicates(li, count) |
| 406 | |
| 407 | def run(self, root: etree.Element) -> None: |
| 408 | """ Crawl the footnote div and add missing duplicate footnotes. """ |
| 409 | self.offset = 0 |
| 410 | for div in root.iter('div'): |
| 411 | if div.attrib.get('class', '') == 'footnote': |
| 412 | # Footnotes should be under the first ordered list under |
| 413 | # the footnote div. So once we find it, quit. |
| 414 | for ol in div.iter('ol'): |
| 415 | self.handle_duplicates(ol) |
| 416 | break |
| 417 | |
| 418 | |
| 419 | class FootnoteTreeprocessor(Treeprocessor): |
nothing calls this directly
no test coverage detected