Module:Lang: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 441:
 
if args.text:match ("^\'[^\']+") then -- first character is single \' which may interfere with italic markup; convert to entity
args.text:gsub ("^\'", '&\x27#39;')
end
 
if args.text:match ("[^\']\'$") then -- last character is single \' which may interfere with italic markup; convert to entity
args.text:gsub ("\'$", '&\x27#39;')
end
 
Anonymous user