summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-11-22 22:31:49 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-11-22 22:31:49 +0100
commit608ec61f66584ce57318f386bf004358a95b6f02 (patch)
tree9e1a11ad723d7fc3f9d2d3f7eadd6e7249b47be0
parentChange to real arg parser. (diff)
downloadvimwiki-scripts-608ec61f66584ce57318f386bf004358a95b6f02.tar.gz
vimwiki-scripts-608ec61f66584ce57318f386bf004358a95b6f02.tar.xz
Fix problem where tail of document was missing.
-rwxr-xr-xdo.py3
1 files changed, 3 insertions, 0 deletions
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')