diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-05 12:35:30 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-05 12:35:30 +0200 |
commit | 5aa54fa5c566310dbb6a550b47f9c5d876a20a24 (patch) | |
tree | 2c56d35e249897440f30e40a1eb016c06706f892 | |
parent | Huge rewrite. (diff) | |
download | vimwiki-scripts-5aa54fa5c566310dbb6a550b47f9c5d876a20a24.tar.gz vimwiki-scripts-5aa54fa5c566310dbb6a550b47f9c5d876a20a24.tar.xz |
Fix vimwiki links.
-rwxr-xr-x | do.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -63,6 +63,7 @@ def resolve_file(addr, frag, comment): def resolve_default(addr, frag, comment): + outstr = '' if addr == '': page = get_heading(frag, data) outstr += '\\begin{verbatim}\n' @@ -172,8 +173,8 @@ for match in tag_iter: print(proto, addr) # disabled for full PDF:s - # attach_str = f"\\section{{{title}}}\n\\label{{{uid}}}\n" attach_str = '' + attach_str += f"\\section{{{title}}}\n\\label{{{uid}}}\n" resolver = resolvers.get(proto, resolve_default) attach_str += resolver(addr, frag, comment) |