Module:Lang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(italic detection bug fix?) |
No edit summary |
||
Line 628: | Line 628: | ||
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: |
if args.text:find ("%f[\']\'\'%f[^\']") or args.text:find ("%f[\']\'\'\'\'\'%f[^\']") 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 |