Skip to content

Commit 47149dc

Browse files
committed
[css2] Added class index-def and index-inst to links, so html2ps inserts
properly formatted page numbers. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40935
1 parent 1396649 commit 47149dc

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

css2/bin/Attic/mkidx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ foreach $e (@sorted) {
8080
}
8181

8282
# Link to given anchor
83+
print OUTPUT ", <a href=\"$prefix#$anchor\" ";
8384
if ($class eq 'index-def') {
84-
print OUTPUT ", <a href=\"$prefix#$anchor\"><strong class=\"def\">";
85-
print OUTPUT "$seqno</strong></a>";
85+
print OUTPUT "class=\"index-def\"><strong>$seqno</strong></a>";
8686
} else {
87-
print OUTPUT ", <a href=\"$prefix#$anchor\"><span class=\"inst\">";
88-
print OUTPUT "$seqno</span></a>";
87+
print OUTPUT "class=\"index-inst\"><span>$seqno</span>";
8988
}
89+
print OUTPUT "</a>";
9090

9191
for ($j = 0; $j <= $#subs; $j++) {$prev[$j] = $subs[$j];}
9292
$prev[$j] = '';

css2/bin/mkidx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ foreach $e (@sorted) {
8080
print OUTPUT ", <a href=\"$prefix#$anchor\" ";
8181
if ($class eq 'index-def') {
8282
print OUTPUT "class=\"index-def\"><strong>$seqno</strong>";
83+
} else {
8384
print OUTPUT "class=\"index-inst\"><span>$seqno</span>";
84-
print OUTPUT ", <a href=\"$prefix#$anchor\"><strong class=\"def\">";
85-
print OUTPUT "$seqno</strong></a>";
85+
print OUTPUT "class=\"index-def\"><strong>$seqno</strong></a>";
8686
print OUTPUT "</a>";
87-
print OUTPUT ", <a href=\"$prefix#$anchor\"><span class=\"inst\">";
88-
print OUTPUT "$seqno</span></a>";
87+
8988
for ($j = 0; $j <= $#subs; $j++) {$prev[$j] = $subs[$j];}
89+
$prev[$j] = '';
9090
}
9191
while ($lvl > 0) {
9292
print OUTPUT "\n</ul>";

0 commit comments

Comments
 (0)