]> git.scottworley.com Git - paperdoorknob/blobdiff - paperdoorknob_test.py
Specify page geometry
[paperdoorknob] / paperdoorknob_test.py
index aa50340ecfd7709ed3437b9ce006d22a5fe1804d..49f1872842ea2e61503fd119942c68bfa0eb6bcc 100644 (file)
@@ -49,9 +49,11 @@ class BaseTestProcess(ABC):
             lambda x: x,
             lambda x: ApplyDOMFilters('NoEdit,NoFooter', x),
             PandocTexifier('pandoc'),
+            'margin=20mm',
             buf)
         paperdoorknob.process(spec)
         assert buf.getvalue() == b'''\\documentclass{article}
+\\usepackage[margin=20mm]{geometry}
 \\begin{document}
 This is glowfic
 You \\emph{sure}?
@@ -69,6 +71,7 @@ Pretty sure.
             lambda x: x,
             lambda x: ApplyDOMFilters('NoEdit,NoFooter', x),
             texifier,
+            None,
             buf)
         paperdoorknob.process(spec)
 
@@ -80,6 +83,7 @@ Pretty sure.
                 lambda x: x,
                 lambda x: ApplyDOMFilters('NoEdit,NoFooter', x),
                 PandocTexifier('pandoc'),
+                None,
                 out)
             paperdoorknob.process(spec)
         subprocess.run(['pdflatex', 'test.tex'],