Changes

m
no edit summary
Line 12: Line 12:  
         if arg:sub(0, 2) == '!!' then
 
         if arg:sub(0, 2) == '!!' then
 
             if openSubtab then
 
             if openSubtab then
                 table.insert(result, string.format('|-| %s =\n{|class="wikitable" style="text-align:center"\n!Ship\n!colspan="4"|Equipment', arg:sub(3)))
+
                 table.insert(result, string.format('|}\n|-| %s =\n{|class="wikitable" style="text-align:center"\n!Ship\n!colspan="4"|Equipment', arg:sub(3)))
 
             else
 
             else
 
                 table.insert(result, string.format('<tabber>\n|-| %s =\n{|class="wikitable" style="text-align:center"\n!Ship\n!colspan="4"|Equipment', arg:sub(3)))
 
                 table.insert(result, string.format('<tabber>\n|-| %s =\n{|class="wikitable" style="text-align:center"\n!Ship\n!colspan="4"|Equipment', arg:sub(3)))
Line 19: Line 19:  
         elseif arg:sub(0, 1) == '!' then
 
         elseif arg:sub(0, 1) == '!' then
 
             if openSubtab then
 
             if openSubtab then
                 table.insert(result, '</tabber>')
+
                 table.insert(result, '|}\n</tabber>')
 
                 openSubtab = false
 
                 openSubtab = false
 
             end
 
             end
Line 41: Line 41:  
     end
 
     end
 
     if openSubtab then
 
     if openSubtab then
         table.insert(result, '</tabber>')
+
         table.insert(result, '|}\n</tabber>')
 
         openSubtab = false
 
         openSubtab = false
 
     end
 
     end
cssedit, gkautomate
6,941

edits