Compare commits
2 commits
45934c5fd2
...
acd42c4f62
Author | SHA1 | Date | |
---|---|---|---|
|
acd42c4f62 | ||
|
cb4317192a |
1 changed files with 13 additions and 1 deletions
|
@ -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 n°#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 n°#t.at(1) p.#locs.first().location().page() : #t.last()])
|
||||
} else {
|
||||
list.item(link(l)[TODO n°#t.at(1) p.??? : #t.last()])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue