Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
hmmm, I see how spaces are currently handled |
fix |
||
வரிசை 95:
end
function safejoin( tbl, duplicate_char, space_char )
--[[▼
local str = '';
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
-- Trim spaces
value = value:match( '^%s*(.-)%s*$' );
if str == '' then
வரி 113 ⟶ 108:
if value:sub(1,1) == duplicate_char then
if str:sub(-1,-1) == duplicate_char then
str = str .. space_char .. value:sub(2);
elseif str:sub(-3,-1) == duplicate_char .. "''" then
str = str .. space_char .. value:sub(2);
else
str = str .. space_char .. value;
end
else
str = str .. space_char .. value;
end
end
வரி 942 ⟶ 937:
end
text = Authors .. Date .. Chapter .. Editors .. tcommon
text = safejoin( {text, pgtext, idcommon}, sepc, ' ' );
elseif ( "" ~= Editors) then
if ( "" ~= Date ) then
வரி 959 ⟶ 954:
end
text = Editors .. Date .. Chapter .. tcommon
text = safejoin( {text, pgtext, idcommon}, sepc
else
if ( "" ~= Date ) then
வரி 968 ⟶ 963:
end -- endif ""~=Date
text = Chapter .. tcommon .. Date
text = safejoin( {text, pgtext, idcommon}, sepc
end
| |||