Module:Chord edo approximation: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 214: | Line 214: | ||
table.insert(padded_errs, pad_left(r._err_strs[i], max_err_w[i])) | table.insert(padded_errs, pad_left(r._err_strs[i], max_err_w[i])) | ||
end | end | ||
local CODE_STYLE = ' style="padding: | local CODE_STYLE = ' style="padding:2px 3px;white-space:nowrap;"' | ||
local steps_cell = '<code' .. CODE_STYLE .. '>' .. table.concat(padded_steps, SEP) .. '</code>' | local steps_cell = '<code' .. CODE_STYLE .. '>' .. table.concat(padded_steps, SEP) .. '</code>' | ||
local cents_cell = '<code' .. CODE_STYLE .. '>' .. table.concat(padded_cents, SEP) .. '</code>' | local cents_cell = '<code' .. CODE_STYLE .. '>' .. table.concat(padded_cents, SEP) .. '</code>' | ||
local errs_cell = '<code' .. CODE_STYLE .. '>' .. table.concat(padded_errs, SEP) .. '</code>' | local errs_cell = '<code' .. CODE_STYLE .. '>' .. table.concat(padded_errs, SEP) .. '</code>' | ||
-- Steps data attribute for the play button (unpadded, comma-separated) | -- Steps data attribute for the play button (unpadded, comma-separated) | ||
local steps_data_parts = {"0"} | local steps_data_parts = {"0"} | ||