Module:Dash: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
No edit summary
Line 6: Line 6:
if frame.args["spaces"] == "thin" then
if frame.args["spaces"] == "thin" then
sp = "\226\128\137"
sp = " "
elseif frame.args["spaces"] == "hair" then
elseif frame.args["spaces"] == "hair" then
sp = "\226\128\138"
sp = " "
else
else
sp = " "
sp = " "
Line 14: Line 14:
if frame.args["separator"] == "mdash" then
if frame.args["separator"] == "mdash" then
sp = "\226\130\148"
sp = "—"
elseif frame.args["separator"] == "ndash" then
elseif frame.args["separator"] == "ndash" then
sp = "\226\130\147"
sp = "–"
else
else
sp = "-"
sp = "-"
end
end
return frame.args["input_str"]:gsub("%s+", sp .. se .. sp)
return "<span>" .. frame.args["input_str"]:gsub("%s+", sp .. se .. sp) .. "</span>"
end
end


return p
return p