diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-11-22 22:31:49 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-11-22 22:31:49 +0100 |
commit | 608ec61f66584ce57318f386bf004358a95b6f02 (patch) | |
tree | 9e1a11ad723d7fc3f9d2d3f7eadd6e7249b47be0 | |
parent | Change to real arg parser. (diff) | |
download | vimwiki-scripts-608ec61f66584ce57318f386bf004358a95b6f02.tar.gz vimwiki-scripts-608ec61f66584ce57318f386bf004358a95b6f02.tar.xz |
Fix problem where tail of document was missing.
-rwxr-xr-x | do.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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') |