Module:RoundN: Difference between revisions

Content deleted Content added
fix bold not displaying when only a single unpaired group of ''' (wikimarkup for bold) are used
m make it so pattern won't fail if text contains apostrophe
Line 278:
if not p.bold then
--backwards compatability (wikitemplates bold each arg individually)
local hasBold, b = tostring(v):gsub("^([^']*)'''([^']*)$", '%1<b>%2</b>')
if b == 1 then
v = hasBold