From 128921904a967ac1391c438ff6b22903c439bca1 Mon Sep 17 00:00:00 2001
From: Laurent Gil <lgil@ebi.ac.uk>
Date: Thu, 30 May 2013 11:51:27 +0000
Subject: [PATCH] Fix columns count in the top menu

---
 misc-scripts/sql2html.pl | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/misc-scripts/sql2html.pl b/misc-scripts/sql2html.pl
index 43f969c825..068c33e918 100644
--- a/misc-scripts/sql2html.pl
+++ b/misc-scripts/sql2html.pl
@@ -579,16 +579,9 @@ sub display_tables_list {
           $t_count = 0;
         }
       }
-      $html .= qq{      </ul>};
+      $html .= qq{\n      </ul>};
       $html .= qq{\n      </div>} if ($count > $nb_by_col);
-      
-      if ($format_headers == 1) {
-        $html .= qq{  </div>\n};
-        if ($nbc > 1) {
-          $html .= qq{  <div style="clear:both" />\n</div>\n\n<div>};
-          $nb_col_line = 0;
-        }
-      }    
+      $html .= qq{\n    </div>\n} if ($format_headers == 1);   
     }
     else {
       $html .= qq{\n    <table style="padding:0px 2px"><tr><td>\n      <ul style="padding-left:20px">\n};
-- 
GitLab