| Conditions | 5 |
| Total Lines | 18 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python |
||
| 42 | def prepare(doc: Doc) -> None: |
||
| 43 | """ |
||
| 44 | Prepare document. |
||
| 45 | |||
| 46 | Arguments |
||
| 47 | --------- |
||
| 48 | doc |
||
| 49 | pandoc document |
||
| 50 | """ |
||
| 51 | doc.double = True |
||
| 52 | |||
| 53 | if ( |
||
| 54 | "pandoc-latex-newpage" in doc.metadata.content |
||
| 55 | and isinstance(doc.metadata.content["pandoc-latex-newpage"], MetaMap) |
||
| 56 | and "double" in doc.metadata.content["pandoc-latex-newpage"] |
||
| 57 | and isinstance(doc.metadata.content["pandoc-latex-newpage"]["double"], MetaBool) |
||
| 58 | ): |
||
| 59 | doc.double = doc.metadata.content["pandoc-latex-newpage"]["double"].boolean |
||
| 60 | |||
| 81 |