Module:Chord edo approximation: Difference between revisions
No edit summary |
No edit summary |
||
| 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:1px 2px;"' | |||
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 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"} | ||