X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FCategoryViewer.php;h=a98f792416f2138527300935a7b3491806b0d1ca;hb=e6fb2a2c556379197dd63943f91f8fc9997c9632;hp=970adb5371ee8229d1a8a5a7580e804aa491dc7d;hpb=827ff83afe215c5011c2846125b7577ea30ddaae;p=lhc%2Fweb%2Fwiklou.git 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.