dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88791a2
)
Change space to non-breaking space to keep headers aligned
author
Danny B
<wikimedia.danny.b@email.cz>
Sat, 16 Mar 2013 03:57:08 +0000
(
04:57
+0100)
committer
Danny B
<wikimedia.danny.b@email.cz>
Fri, 22 Mar 2013 22:49:16 +0000
(23:49 +0100)
Change-Id: I8395efe3ded9093aa5dded9f0688ed0ef3ab9cc6
includes/CategoryViewer.php
patch
|
blob
|
history
diff --git
a/includes/CategoryViewer.php
b/includes/CategoryViewer.php
index
970adb5
..
a98f792
100644
(file)
--- a/
includes/CategoryViewer.php
+++ b/
includes/CategoryViewer.php
@@
-526,7
+526,10
@@
class CategoryViewer extends ContextSource {
$first = true;
foreach ( $colContents as $char => $articles ) {
- $ret .= '<h3>' . htmlspecialchars( $char );
+ # Change space to non-breaking space to keep headers aligned
+ $h3char = $char === ' ' ? ' ' : htmlspecialchars( $char );
+
+ $ret .= '<h3>' . $h3char;
if ( $first && $char === $prevchar ) {
# We're continuing a previous chunk at the top of a new
# column, so add " cont." after the letter.