2016-01-24

added de-duplication to inline and table cell rendering

← Older revision

Revision as of 04:42, January 24, 2016

Line 133:

Line 133:

function TableCell(frame)

function TableCell(frame)



return ShortScale(frame) .. '<br/>' .. Scientific(frame)

+

short = ShortScale(frame)

+

sci = Scientific(frame)

+

if (short == sci) then

+

return short

+

else

+

return short .. '<br/>' .. sci

+

end

end

end

function Inline(frame)

function Inline(frame)



return ShortScale(frame) .. ' (' .. Scientific(frame) .. ')'

+

short = ShortScale(frame)

+

sci = Scientific(frame)

+

if (short == sci) then

+

return short

+

else

+

return short .. ' (' .. sci .. ')'

+

end

end

end

Show more