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