Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
len not length |
slightly reduce number of sub calls for performance |
||
வரிசை 106:
local str = '';
local comp = '';
local end_chr = '';
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
வரி 120 ⟶ 121:
if comp:sub(1,1) == duplicate_char then
if end_chr == duplicate_char then
str = str:sub(1,-2) .. value;
elseif
str = str .. value;
end
elseif end_chr == " " then
if str:sub(-2,-1) == duplicate_char .. " " then
str = str:sub(1,-3) .. value;
else
str = str .. value;
end
else
str = str .. value;
| |||