From 7064c36bc59a130f9c66bfd22b1a48fe0ca6bbe1 Mon Sep 17 00:00:00 2001 From: Danny B Date: Sat, 16 Mar 2013 04:57:08 +0100 Subject: [PATCH] Change space to non-breaking space to keep headers aligned Change-Id: I8395efe3ded9093aa5dded9f0688ed0ef3ab9cc6 --- includes/CategoryViewer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 970adb5371..a98f792416 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -526,7 +526,10 @@ class CategoryViewer extends ContextSource { $first = true; foreach ( $colContents as $char => $articles ) { - $ret .= '

' . htmlspecialchars( $char ); + # Change space to non-breaking space to keep headers aligned + $h3char = $char === ' ' ? ' ' : htmlspecialchars( $char ); + + $ret .= '

' . $h3char; if ( $first && $char === $prevchar ) { # We're continuing a previous chunk at the top of a new # column, so add " cont." after the letter. -- 2.20.1