Differences From Artifact [214c9479d0]:
- File ext/toc.lua — part of check-in [3ee2195d4f] at 2022-09-08 23:37:01 on branch trunk — progress on resources + block macros; fix toc bug; add uri, fetch scaffolding, and b64e to sirsem (user: lexi, size: 8414) [annotate] [blame] [check-ins using]
To Artifact [38c6bac1b2]:
- File ext/toc.lua — part of check-in [6c198bdce0] at 2022-09-09 01:12:24 on branch trunk — many fixes and updates to kate syntax (user: lexi, size: 8415) [annotate] [blame] [check-ins using]
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
end
local function scandoc(doc, depth)
for i, sec in ipairs(doc.secorder) do
table.insert(all, {ref = sec, depth = sec.depth + depth})
for j, block in ipairs(sec.blocks) do
if blockHasSubdoc(block) then
scandoc(block.doc, depth + sec.depth-1)
end
end
end
end
scandoc(job.doc,0)
|
| |
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
end
local function scandoc(doc, depth)
for i, sec in ipairs(doc.secorder) do
table.insert(all, {ref = sec, depth = sec.depth + depth})
for j, block in ipairs(sec.blocks) do
if blockHasSubdoc(block) then
scandoc(block.doc, depth + sec.depth-10)
end
end
end
end
scandoc(job.doc,0)
|