summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-10-05 12:35:30 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-10-05 12:35:30 +0200
commit5aa54fa5c566310dbb6a550b47f9c5d876a20a24 (patch)
tree2c56d35e249897440f30e40a1eb016c06706f892
parentHuge rewrite. (diff)
downloadvimwiki-scripts-5aa54fa5c566310dbb6a550b47f9c5d876a20a24.tar.gz
vimwiki-scripts-5aa54fa5c566310dbb6a550b47f9c5d876a20a24.tar.xz
Fix vimwiki links.
-rwxr-xr-xdo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/do.py b/do.py
index e56e4e0..15f44b6 100755
--- a/do.py
+++ b/do.py
@@ -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)