Module:Convert: Difference between revisions

fix bug seen in {{val|1|u=AU/s}} and {{convert|1|AU/s|disp=unit or text}} due to unnecessary processing of the default output for an automatic per unit
(update from sandbox per Template talk:Convert#Module version 10)
(fix bug seen in {{val|1|u=AU/s}} and {{convert|1|AU/s|disp=unit or text}} due to unnecessary processing of the default output for an automatic per unit)
Line 3,385:
local out_unit = parms.out_unit
if out_unit == nil or out_unit == '' then
if bad_input_mcode or parms.opt_input_unit_only then
bad_output = ''
else
Line 3,415:
parts[part] = process_input(parms, in_unit_table)
elseif bad_output then
ifparts[part] = (bad_output ~== '') thenand '' or message(bad_output)
parts[part] = message(bad_output)
end
else
local outputs = {}
Anonymous user