Module:Lang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(make is_latn() accessible to Module:Lang/utilities) |
(italic detection bug fix?) |
||
Line 627: | Line 627: | ||
if ('unset' ~= args.italic) and ('unset' ~= args.italics) then -- allow italic markup when |italic=unset or |italics=unset |
if ('unset' ~= args.italic) and ('unset' ~= args.italics) then -- allow italic markup when |italic=unset or |italics=unset |
||
if args.text:match ("%f[\']\'\'[^\']+\'\'%f[^\']") or args.text:match ("\'\'\'\'\'[^\']+\'\'\'\'\'") then -- italic but not bold, or bold italic |
-- if args.text:match ("%f[\']\'\'[^\']+\'\'%f[^\']") or args.text:match ("\'\'\'\'\'[^\']+\'\'\'\'\'") then -- italic but not bold, or bold italic |
||
if args.text:find ("%f[\']\'\'%f[^\']") or args.text:match ("\'\'\'\'\'[^\']+\'\'\'\'\'") then -- italic but not bold, or bold italic |
|||
return make_error_msg ('text has italic markup', args, template); |
return make_error_msg ('text has italic markup', args, template); |
||
end |
end |