Module:Build bracket/Render and Module:Build bracket/Render/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Pbrks
fix whitespace issue
 
imported>Pbrks
No edit summary
 
Line 275: Line 275:
     else
     else
         -- derive from left path column
         -- derive from left path column
         local wantTop = entry.border == "top" or entry.border == "both"
         local wantTop   = entry.border == "top" or entry.border == "both"
         local wantBottom = (entry.border == nil) or entry.border == "bottom" or entry.border == "both"
         local wantBottom = (entry.border == nil) or entry.border == "bottom" or entry.border == "both"


         if wantBottom and state.pathCell[j - 1] and state.pathCell[j - 1][i + 1] then
        -- bottom edge now aligns with path edges on row i (not i+1)
             borderWidth[3] = 2 * (state.pathCell[j - 1][i + 1][3][1][3] or 0)
         if wantBottom and state.pathCell[j - 1] and state.pathCell[j - 1][i] then
             borderWidth[3] = 2 * (state.pathCell[j - 1][i][3][1][3] or 0)
         end
         end
         if wantTop and state.pathCell[j - 1] and state.pathCell[j - 1][i] then
         if wantTop and state.pathCell[j - 1] and state.pathCell[j - 1][i] then
Line 286: Line 287:
     end
     end


     local cell = Cell(tbl, j, i, {rowspan = 2, colspan = entry_colspan, text = entry.text, borderWidth = borderWidth})
    -- single-row line cell (no rowspan=2)
     local cell = Cell(tbl, j, i, { rowspan = 1, colspan = entry_colspan, text = entry.text, borderWidth = borderWidth })
     cell:addClass("brk-line")
     cell:addClass("brk-line")
     if entry.color then
     if entry.color then