Module:Harmonics in cet: Difference between revisions
ArrowHead294 (talk | contribs) No edit summary |
m i find this style subtly very irritating sorry, i was surprised to find it so bothersome; if the motivation is to make - the same width as + then this solution is worse than using an ASCII - because it makes - longer than +. and one should prefer ASCII to avoid confusing people copying the data which they expect to be the ASCII minus |
||
| Line 16: | Line 16: | ||
ev = math.floor(v + .5) | ev = math.floor(v + .5) | ||
table.insert(tpri, "" .. p) | table.insert(tpri, "" .. p) | ||
table.insert(tabs, "" .. string.gsub(string.format(fmt_abs, 1200 * (ev - v)*size), "%-", " | table.insert(tabs, "" .. string.gsub(string.format(fmt_abs, 1200 * (ev - v)*size), "%-", "-")) | ||
table.insert(trel, "" .. string.gsub(string.format(fmt_rel, 100 * (ev - v)), "%-", " | table.insert(trel, "" .. string.gsub(string.format(fmt_rel, 100 * (ev - v)), "%-", "-")) | ||
table.insert(tdeg, "" .. ev) | table.insert(tdeg, "" .. ev) | ||
end | end | ||