Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
testing |
hmmm, I see how spaces are currently handled |
||
வரிசை 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
in tbl may be ASCII or UTF8.
]]
வரிசை 107:
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
if str == '' then
வரி 116 ⟶ 113:
if value:sub(1,1) == duplicate_char then
if str:sub(-1,-1) == duplicate_char then
elseif str:sub(-3,-1) == duplicate_char .. "''" then
else
str = str
end
else
str = str
end
end
| |||