From: Danny B Date: Sat, 16 Mar 2013 03:57:08 +0000 (+0100) Subject: Change space to non-breaking space to keep headers aligned X-Git-Tag: 1.31.0-rc.0~19592^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=7064c36bc59a130f9c66bfd22b1a48fe0ca6bbe1;p=lhc%2Fweb%2Fwiklou.git Change space to non-breaking space to keep headers aligned Change-Id: I8395efe3ded9093aa5dded9f0688ed0ef3ab9cc6 --- 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.