Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
fix |
note to self, don't edit old versions |
||
வரிசை 95:
end
function safejoin( tbl, duplicate_char
Note: we use string function here, rather than ustring functions.
This has considerably faster performance and should work correctly as
long as the duplicate_char is strict ASCII. The strings
in tbl may be ASCII or UTF8.
]]
local str = '';
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
if str == '' then
வரி 108 ⟶ 113:
if value:sub(1,1) == duplicate_char then
if str:sub(-1,-1) == duplicate_char then
str = str
elseif str:sub(-3,-1) == duplicate_char .. "''" then
str = str
else
str = str
end
else
str = str
end
end
வரி 937 ⟶ 942:
end
text = Authors .. Date .. Chapter .. Editors .. tcommon
text = safejoin( {text, pgtext, idcommon}, sepc
elseif ( "" ~= Editors) then
if ( "" ~= Date ) then
| |||