summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-01-18 01:26:21 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-01-18 01:26:21 +0100
commit5e35bf4b6e5d4f441fbfda4724ac23a8af03e51b (patch)
tree6043dba5494bbdda19aa26f2d630764f0d55d384
parent11d7a99c3972e1f2b05622fdacd74c5d53fce95c (diff)
downloaddocs-5e35bf4b6e5d4f441fbfda4724ac23a8af03e51b.tar.gz
docs-5e35bf4b6e5d4f441fbfda4724ac23a8af03e51b.tar.bz2
docs-5e35bf4b6e5d4f441fbfda4724ac23a8af03e51b.zip
Add warning for unresolved links.
-rw-r--r--exts/tsref.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/exts/tsref.py b/exts/tsref.py
index 2b2196c1..c7d6089e 100644
--- a/exts/tsref.py
+++ b/exts/tsref.py
@@ -157,8 +157,7 @@ class LinkFilter(Filter):
href = self.app.builder.get_target_uri(docname) + "#" + id
tok_setprop(t, "href", href)
else:
- # TODO: warn!
- pass
+ self.app.builder.warn("unresolved link target in comment: " + id)
yield t, m.group(1)
last = m.end()
post = value[last:]