X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/36ae1d5f39e74dc6c6cc1cd253d029f86003c83f..705973e749e5a9da0453508dbd23de434a0fdc65:/paperdoorknob.py diff --git a/paperdoorknob.py b/paperdoorknob.py index 32daf4f..8ab62f1 100644 --- a/paperdoorknob.py +++ b/paperdoorknob.py @@ -84,9 +84,11 @@ def process( texout: IO[bytes], pandoc: str, ) -> None: + texout.write(b'\\documentclass{article}\n\\begin{document}\n') html = clean(fetch(url, session, timeout)) for r in replies(html): texout.write(html_to_tex(pandoc, r)) + texout.write(b'\\end{document}\n') def main() -> None: