Jump to content

Module:Citation/CS1: Difference between revisions

hyphen_to_dash() fix;
(sync from sandbox;)
(hyphen_to_dash() fix;)
Line 956: Line 956:
end
end


        local temp_str = ''; -- concatenate the output table into a comma separated string
local temp_str = ''; -- concatenate the output table into a comma separated string
temp_str, accept = utilities.has_accept_as_written (table.concat (out, ', ')); -- remove accept-this-as-written markup when it wraps all of concatenated out
temp_str, accept = utilities.has_accept_as_written (table.concat (out, ', ')); -- remove accept-this-as-written markup when it wraps all of concatenated out
if accept then
if accept then
return utilities.has_accept_as_written (str); -- when global markup removed, return original str
temp_str = utilities.has_accept_as_written (str); -- when global markup removed, return original str; do it this way to suppress boolean second return value
return temp_str;
else
else
return temp_str; -- else, return assembled temp_str
return temp_str; -- else, return assembled temp_str
end
end
end
end


--[[--------------------------< S A F E _ J O I N >-----------------------------
--[[--------------------------< S A F E _ J O I N >-----------------------------
Cookies help us deliver our services. By using our services, you agree to our use of cookies.