def process(spec: Spec) -> None:
spec.texout.write(b'''\\documentclass{article}
\\usepackage{graphicx}
-\\usepackage{wrapfig}
+\\usepackage{wrapstuff}
''')
if spec.geometry is not None:
spec.texout.write(b'\\usepackage[' +
else:
# h/t https://tex.stackexchange.com/questions/309856
spec.texout.write(b'''
-\\vspace{-.5\\ht\\strutbox}\\noindent\\hrulefill
+\\wrapstuffclear\\vspace{-.5\\ht\\strutbox}\\noindent\\hrulefill
''')
spec.domfilter(r)