Module:Hearts: Difference between revisions

Want an adless experience? Log in or Create an account.
m
replace \n with <br/>
(fix 0 handling maybe if I got order of operations right)
m (replace \n with <br/>)
 
Line 18: Line 18:
     output[#output+1] = num == 0 and icon.empty or string.rep( icon[1], whole ) .. icon[fraction]
     output[#output+1] = num == 0 and icon.empty or string.rep( icon[1], whole ) .. icon[fraction]
   end
   end
   return table.concat(output, "\n")
   return table.concat(output, "<br/>")
end
end


return p
return p