try replacing locate with query
This commit is contained in:
parent
45934c5fd2
commit
cb4317192a
1 changed files with 7 additions and 1 deletions
|
@ -27,7 +27,13 @@
|
||||||
text(size: 2em, weight: "bold", fill:red)[TO-DOs]
|
text(size: 2em, weight: "bold", fill:red)[TO-DOs]
|
||||||
for t in todo-list.final() {
|
for t in todo-list.final() {
|
||||||
let l = label(t.first())
|
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) + ")"
|
||||||
|
)
|
||||||
|
list.item(link(l)[TODO n°#t.at(1) p.#locs.first().location().page() : #t.last()])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue