Module:String: Difference between revisions

Ttenbergen (talk | contribs)
No edit summary
Ttenbergen (talk | contribs)
No edit summary
Line 8: Line 8:


     for part in (source..delimiter):gmatch("(.-)"..delimiter) do
     for part in (source..delimiter):gmatch("(.-)"..delimiter) do
         table.insert(results, string.format("<li>[[%s]]</li>", part))
         if not (part ~= "") then
            table.insert(results, string.format("<li>[[%s]]</li>", part))
        end
     end
     end