Module:Build bracket/Render and Module:Build bracket/Render/sandbox: Difference between pages
(Difference between pages)
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 | -- bottom edge now aligns with path edges on row i (not i+1) | ||
borderWidth[3] = 2 * (state.pathCell[j - 1][i | 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 = | -- 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 | ||