Content deleted Content added
Add debug colours Tag: Reverted |
Trying a possible fix Tag: Reverted |
||
Line 507:
newRow(r)
end
p:saveStr('solid', tab.line[1][true], ' solid pink')
p.cornerDiv = mw.html.create'div':css{height = tab.line[1][true], ['border-right'] =
for c = 1, p.cols do
col.c = c
Line 739:
if interval % 2 == 0 then
--col.t and col.t2 control whether lines are drawn
if r == bumps+1 then
col.t = col.t2 or skipMatch[col.tot + col.n / 2 + 1] and 3 or ((skipMatch[col.top] and 1 or 0) + (skipMatch[col.top + 1] and 2 or 0))▼
col.t = skipMatch[col.tot + col.n / 2 + 1] and 3 or ((skipMatch[col.top] and 1 or 0) + (skipMatch[col.top + 1] and 2 or 0))
else
▲ col.t = col.t2 or skipMatch[col.tot + col.n / 2 + 1] and 3 or ((skipMatch[col.top] and 1 or 0) + (skipMatch[col.top + 1] and 2 or 0))
end
col.n = col.n + 2
col.t2 = skipMatch[col.tot + col.n / 2 + 1] and 3 or ((skipMatch[col.top + col.n] and 1 or 0) + (skipMatch[col.top + col.n + 1] and 2 or 0))
if r == 32 then
-- error (col.t)
end
if col.t == 0 then --draws the ] when a PAIR of matches needs lines
-- error(col.tot, col.n, r, rows, p.unit)
tab.r
:attr{rowspan = maxSpan(p.unit * 2, r, rows)}
|