Module:Step vis: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 29: | Line 29: | ||
if i == 1 then | if i == 1 then | ||
current_step_vis = (current_step_size == 0 and double_border_left or left_border .. string.rep(no_border, current_step_size - 1)) | |||
elseif i == #step_pattern then | elseif i == #step_pattern then | ||
if current_step_size == 0 then | if current_step_size == 0 then | ||
if (previous_step_size == 0) then | if (previous_step_size == 0) then | ||
step_visualization = string.sub(step_visualization, 1, -9) | step_visualization = string.sub(step_visualization, 1, -9) | ||
end | end | ||
current_step_vis = double_border_right | |||
else | else | ||
current_step_vis = (previous_step_size == 0 and "" or single_border) .. string.rep(no_border, current_step_size - 1) .. right_border | current_step_vis = (previous_step_size == 0 and "" or single_border) .. string.rep(no_border, current_step_size - 1) .. right_border | ||