Module:Tabs: Difference between revisions

Want an adless experience? Log in or Create an account.
some more whitespace stripping
m (remove whitespace in content selection)
(some more whitespace stripping)
Line 91: Line 91:


   for _, c in ipairs( self.contents ) do
   for _, c in ipairs( self.contents ) do
     if self.tabsLeft and self.tabsLeft.defaultSelection == c.selection
     if type( c.selection ) == 'table'
      or self.tabsTop and self.tabsTop.defaultSelection == c.selection
        and self.tabsLeft and self.tabsLeft.defaultSelection == c.selection.left:gsub( "%s", "" )
       or type( c.selection ) == 'table'
        and self.tabsTop and self.tabsTop.defaultSelection == c.selection.top:gsub( "%s", "" )
        and self.tabsLeft and self.tabsLeft.defaultSelection == c.selection.left
       or self.tabsLeft and self.tabsLeft.defaultSelection == c.selection:gsub( "%s", "" )
        and self.tabsTop and self.tabsTop.defaultSelection == c.selection.top then
      or self.tabsTop and self.tabsTop.defaultSelection == c.selection:gsub( "%s", "" ) then
       c.default = true
       c.default = true
     end
     end