def process(spec: Spec) -> None:
- spec.texout.write(b'\\documentclass{article}\n\\begin{document}\n')
+ spec.texout.write(b'\\documentclass{article}\n')
+ if spec.geometry is not None:
+ spec.texout.write(b'\\usepackage[' +
+ spec.geometry.encode('UTF-8') +
+ b']{geometry}\n')
+ spec.texout.write(b'\\begin{document}\n')
html = parse(spec.htmlfilter(spec.fetcher.fetch(spec.url)))
for r in replies(html):
spec.domfilter(r)