Clear toc items that naturally differ.
(toc)
| 18 | toc_new = new.get_toc(simple=False) |
| 19 | |
| 20 | def clear_xref(toc): |
| 21 | ''' |
| 22 | Clear toc items that naturally differ. |
| 23 | ''' |
| 24 | for item in toc: |
| 25 | d = item[3] |
| 26 | if 'collapse' in d: |
| 27 | d['collapse'] = 'dummy' |
| 28 | if 'xref' in d: |
| 29 | d['xref'] = 'dummy' |
| 30 | |
| 31 | clear_xref(toc_pdf) |
| 32 | clear_xref(toc_new) |
no outgoing calls
no test coverage detected
searching dependent graphs…