540
edits
(sync from sandbox;) |
m (21 revisions imported from wikipedia:Module:Citation/CS1: see Topic:Vtixlm0q28eo6jtf) |
||
(One intermediate revision by one other user not shown) | |||
Line 956: | Line 956: | ||
end | end | ||
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 | ||
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 >----------------------------- |