From 608ec61f66584ce57318f386bf004358a95b6f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 22 Nov 2020 22:31:49 +0100 Subject: Fix problem where tail of document was missing. --- do.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/do.py b/do.py index 7015e6b..14028b8 100755 --- a/do.py +++ b/do.py @@ -245,6 +245,7 @@ if mode == 'tex': \\maketitle % \\tableofcontents ''') + elif mode == 'txt': d = f'{datetime.now():%Y-%m-%d}' output.write(f'\n{heading.center(40)}\n{d.center(40)}\n') @@ -311,6 +312,8 @@ for match in tag_iter: bilagor += [attach_str] +outstr += page1[pos:] + if mode == 'tex': output.write('\\begin{verbatim}\n') output.write(outstr + '\n') -- cgit v1.2.3