Module:Step vis: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 26: | Line 26: | ||
local current_step_vis = "" | local current_step_vis = "" | ||
local current_step_size = step_pattern[i] | local current_step_size = step_pattern[i] | ||
local next_step_size = (i < #step_pattern and step_pattern[i + 1] or -1) | |||
if i == 1 then | if i == 1 then | ||
| Line 36: | Line 37: | ||
if current_step_size == 0 then | if current_step_size == 0 then | ||
current_step_vis = double_border_right | current_step_vis = double_border_right | ||
if previous_step_size == 0 then | |||
current_step_vis = step_visualization:sub(1, -2) .. double_border_right | |||
end | |||
else | else | ||
current_step_vis = single_border .. string.rep(no_border, current_step_size - 1) .. right_border | current_step_vis = single_border .. string.rep(no_border, current_step_size - 1) .. right_border | ||