Module:MOS: Difference between revisions
Added modal union function |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 79: | Line 79: | ||
-- Option to use nbsp is provided using the second param; default is no nbsp | -- Option to use nbsp is provided using the second param; default is no nbsp | ||
function p.as_string(mos, use_nbsp) | function p.as_string(mos, use_nbsp) | ||
local use_nbsp = use_nbsp | local use_nbsp = use_nbsp or true | ||
local suffix = "" | local suffix = "" | ||
if not rat.eq(mos.equave, 2) then | if not rat.eq(mos.equave, 2) then | ||
| Line 91: | Line 91: | ||
-- Option to use nbsp is provided using the second param; default is no nbsp | -- Option to use nbsp is provided using the second param; default is no nbsp | ||
function p.as_long_string(mos, use_nbsp) | function p.as_long_string(mos, use_nbsp) | ||
local use_nbsp = use_nbsp | local use_nbsp = use_nbsp or true | ||
local suffix = "" | local suffix = "" | ||
if not rat.eq(mos.equave, 2) then | if not rat.eq(mos.equave, 2) then | ||