anticipate a potential fallback for todos
This commit is contained in:
parent
cb4317192a
commit
acd42c4f62
1 changed files with 8 additions and 2 deletions
|
@ -28,12 +28,18 @@
|
|||
for t in todo-list.final() {
|
||||
let l = label(t.first())
|
||||
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()])
|
||||
)
|
||||
|
||||
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