| @@ 10-22 (lines=13) @@ | ||
| 7 | ||
| 8 | import pandoc_numbering |
|
| 9 | ||
| 10 | def init(): |
|
| 11 | pandoc_numbering.count = {} |
|
| 12 | pandoc_numbering.information = {} |
|
| 13 | pandoc_numbering.collections = {} |
|
| 14 | pandoc_numbering.headers = [0, 0, 0, 0, 0, 0] |
|
| 15 | if hasattr(pandoc_numbering.getCiteShortCut, 'value'): |
|
| 16 | delattr(pandoc_numbering.getCiteShortCut, 'value') |
|
| 17 | if hasattr(pandoc_numbering.getDefaultLevels, 'value'): |
|
| 18 | delattr(pandoc_numbering.getDefaultLevels, 'value') |
|
| 19 | if hasattr(pandoc_numbering.getClasses, 'value'): |
|
| 20 | delattr(pandoc_numbering.getClasses, 'value') |
|
| 21 | if hasattr(pandoc_numbering.getFormat, 'value'): |
|
| 22 | delattr(pandoc_numbering.getFormat, 'value') |
|
| 23 | ||
| 24 | def createLink(attributes, text, reference_title): |
|
| 25 | if pandoc_numbering.pandocVersion() < '1.16': |
|
| @@ 10-22 (lines=13) @@ | ||
| 7 | ||
| 8 | import pandoc_numbering |
|
| 9 | ||
| 10 | def init(): |
|
| 11 | pandoc_numbering.count = {} |
|
| 12 | pandoc_numbering.information = {} |
|
| 13 | pandoc_numbering.collections = {} |
|
| 14 | pandoc_numbering.headers = [0, 0, 0, 0, 0, 0] |
|
| 15 | if hasattr(pandoc_numbering.getCiteShortCut, 'value'): |
|
| 16 | delattr(pandoc_numbering.getCiteShortCut, 'value') |
|
| 17 | if hasattr(pandoc_numbering.getDefaultLevels, 'value'): |
|
| 18 | delattr(pandoc_numbering.getDefaultLevels, 'value') |
|
| 19 | if hasattr(pandoc_numbering.getClasses, 'value'): |
|
| 20 | delattr(pandoc_numbering.getClasses, 'value') |
|
| 21 | if hasattr(pandoc_numbering.getFormat, 'value'): |
|
| 22 | delattr(pandoc_numbering.getFormat, 'value') |
|
| 23 | ||
| 24 | def test_numbering(): |
|
| 25 | init() |
|