Jump to content

Module:Citation/CS1: Difference between revisions

". ." case
m>Dragons flight
(testing aggressive dot killing)
m>Dragons flight
(". ." case)
Line 97: Line 97:
function safejoin( tbl, duplicate_char )
function safejoin( tbl, duplicate_char )
     --[[
     --[[
     Note: we use string function here, rather than ustring functions.
     Note: we use string functions here, rather than ustring functions.
      
      
     This has considerably faster performance and should work correctly as  
     This has considerably faster performance and should work correctly as  
Line 116: Line 116:
                 elseif str:sub(-3,-1) == duplicate_char .. "''" then                   
                 elseif str:sub(-3,-1) == duplicate_char .. "''" then                   
                     str = str .. value:sub(2);
                     str = str .. value:sub(2);
                elseif str:sub(-2,-1) == duplicate_char .. " " then
                    str = str:sub(1,-3) .. value;
                 else
                 else
                     str = str .. value;
                     str = str .. value;
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.