Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
testing
hmmm, I see how spaces are currently handled
வரிசை 95:
end
 
function safejoin( tbl, duplicate_char, space_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 and space_char areis strict ASCII. The strings
in tbl may be ASCII or UTF8.
]]
வரிசை 107:
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
-- Trim spaces
value = value:match( '^%s*(.-)%s*$' );
if str == '' then
வரி 116 ⟶ 113:
if value:sub(1,1) == duplicate_char then
if str:sub(-1,-1) == duplicate_char then
ifstr = str string.len(. value :sub(2) > 1 then;
str = str .. space_char .. value:sub(2);
end
elseif str:sub(-3,-1) == duplicate_char .. "''" then
ifstr = str string.len(. value :sub(2) > 1 then;
str = str .. space_char .. value:sub(2);
end
else
str = str .. space_char .. value;
end
else
str = str .. space_char .. value;
end
end
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது