Skip to content

Commit 36c4448

Browse files
committed
[css2] No longer outputs target anchors for uppercase, but only for lowercase.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402232
1 parent 033b67c commit 36c4448

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

css2/bin/mkidx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ foreach $e (@sorted) {
6969
# work on non-alphanumeric!
7070
foreach (ord($prevletter)+1 .. ord($letter)) {
7171
# Be careful about quotes and double quotes.
72-
unless ($_ == 34 || $_ == 38 || $_ == 39) {
72+
# Also skip uppercase, since we have
73+
# sorted case-insensitively.
74+
unless ($_ == 34 || $_ == 38 || $_ == 39
75+
|| (ord('A') <= $_ && $_ <= ord('Z'))) {
7376
print OUTPUT "<a name=\"index-" . chr($_) . "\">&nbsp;</a>";
7477
}
7578
}

0 commit comments

Comments
 (0)