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