Module:Convert/makeunits: Difference between revisions

Content deleted Content added
fix so {{#invoke:convert/makeunits|makeunits}} uses nowiki in pre tags; tweak error messages; fix evaluate issue
something (mw.text.nowiki?) is only preserving the first tab character on each line and is misaligning the second tab, so use spaces second tab for less ugly result
Line 1,533:
error('Fatal error: unknown data type for ' .. unit.unitcode)
end
local fmt = string.format('\t%%s%s -9s= %%%s,', want_quotes and 'q' or 's')
(#k < 8) and '\t' or '',
want_quotes and 'q' or 's')
results:add(fmt:format(k, v))
end