cortav  Diff

Differences From Artifact [214c9479d0]:

To Artifact [38c6bac1b2]:


   205    205   				end
   206    206   
   207    207               local function scandoc(doc, depth)
   208    208   	            for i, sec in ipairs(doc.secorder) do
   209    209   						table.insert(all, {ref = sec, depth = sec.depth + depth})
   210    210   						for j, block in ipairs(sec.blocks) do
   211    211   							if blockHasSubdoc(block) then
   212         -								scandoc(block.doc, depth + sec.depth-1)
          212  +								scandoc(block.doc, depth + sec.depth-10)
   213    213   							end
   214    214   						end
   215    215   	            end
   216    216               end
   217    217   
   218    218   				scandoc(job.doc,0)
   219    219