Module:TemplateStructure: Difference between revisions

No edit summary
No edit summary
Line 38: Line 38:
         if type(block) == "function" then
         if type(block) == "function" then
             local blockOutput = block(args, config)
             local blockOutput = block(args, config)
             if blockOutput and blockOutput ~= "" then
            blockOutput = trim(blockOutput)
                blockOutput = trim(blockOutput)
             if blockOutput ~= "" then
                 table.insert(result, blockOutput)
                 table.insert(result, blockOutput)
             end
             end