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 | local CODE_STYLE = ' style="padding:1px 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>' | ||
local CODE_OPEN = '<span style="font-family:monospace;">' | |||
local CODE_CLOSE = '</span>' | |||
local steps_cell = CODE_OPEN .. table.concat(padded_steps, SEP) .. CODE_CLOSE | |||
-- etc. | |||
-- 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"} | ||