Crawl the footnote div and add missing duplicate footnotes.
(self, root: etree.Element)
| 415 | self.add_duplicates(li, count) |
| 416 | |
| 417 | def run(self, root: etree.Element) -> None: |
| 418 | """ Crawl the footnote div and add missing duplicate footnotes. """ |
| 419 | self.offset = 0 |
| 420 | for div in root.iter('div'): |
| 421 | if div.attrib.get('class', '') == 'footnote': |
| 422 | # Footnotes should be under the first ordered list under |
| 423 | # the footnote div. So once we find it, quit. |
| 424 | for ol in div.iter('ol'): |
| 425 | self.handle_duplicates(ol) |
| 426 | break |
| 427 | |
| 428 | |
| 429 | class FootnoteTreeprocessor(Treeprocessor): |
nothing calls this directly
no test coverage detected