Compare commits

..

2 commits

Author SHA1 Message Date
Jean-Marie Mineau
acd42c4f62
anticipate a potential fallback for todos 2025-07-07 12:37:53 +02:00
Jean-Marie Mineau
cb4317192a
try replacing locate with query 2025-07-07 10:33:31 +02:00

View file

@ -27,7 +27,19 @@
text(size: 2em, weight: "bold", fill:red)[TO-DOs]
for t in todo-list.final() {
let l = label(t.first())
list.item(link(l)[TODO #t.at(1) p.#locate(l).page() : #t.last()])
let locs = query(l)
assert(
locs.len() >= 1,
message: "todo '" + t.first() + "' not found: " +
repr(t.last()) + " (query(" + repr(l) + ") = " + repr(locs) + ")"
)
if locs.len() >= 1 {
list.item(link(l)[TODO #t.at(1) p.#locs.first().location().page() : #t.last()])
} else {
list.item(link(l)[TODO #t.at(1) p.??? : #t.last()])
}
}
}
}