Module:ListGeneration: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 73: | Line 73: | ||
end | end | ||
-- If there's only one item, return it directly without list formatting | -- If there's only one item and no custom bullet, return it directly without list formatting | ||
if #items == 1 then | if #items == 1 and (mode ~= 'bullet_custom' or not bulletChar or bulletChar == '') then | ||
local singleItem = items[1] | local singleItem = items[1] | ||
if type(singleItem) == 'table' then | if type(singleItem) == 'table' then | ||