From 7229a31a0d37076a6d36f1622d9588d4dbab07f7 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Thu, 5 Jan 2012 04:53:05 +0000 Subject: [PATCH] Bug 33514 - Make category "columns" (table cells) equal width Author: Erwin Dokter --- includes/CategoryViewer.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 098614253c..4d3532cc28 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -486,10 +486,11 @@ class CategoryViewer extends ContextSource { # Split into three columns $columns = array_chunk( $columns, ceil( count( $columns ) / 3 ), true /* preserve keys */ ); - $ret = '
'; + $ret = ''; $prevchar = null; foreach ( $columns as $column ) { + $ret .= '\n\n"; } - $ret .= '
'; $colContents = array(); # Kind of like array_flip() here, but we keep duplicates in an @@ -519,10 +520,10 @@ class CategoryViewer extends ContextSource { $prevchar = $char; } - $ret .= ""; + $ret .= "
'; + $ret .= '
'; return $ret; } -- 2.20.1