Module:Citation/CS1: Difference between revisions
fixes
m>Dragons flight (always forget the name) |
m>Dragons flight (fixes) |
||
Line 121: | Line 121: | ||
if comp:sub(1,1) == duplicate_char then | if comp:sub(1,1) == duplicate_char then | ||
if str:sub(-1,-1) == duplicate_char then | if str:sub(-1,-1) == duplicate_char then | ||
str = str(1,-2) .. value; | str = str:sub(1,-2) .. value; | ||
elseif str:sub(-3,-1) == duplicate_char .. "''" then | elseif str:sub(-3,-1) == duplicate_char .. "''" then | ||
str = str(1, -4) .. "''" .. value | str = str:sub(1, -4) .. "''" .. value; | ||
elseif str:sub(-2,-1) == duplicate_char .. " " then | elseif str:sub(-2,-1) == duplicate_char .. " " then | ||
str = str:sub(1,-3) .. value; | str = str:sub(1,-3) .. value; |