Skip to content

Commit 914790f

Browse files
committed
[CSS21] Make sure anchors are also unique in the single-page version (PDF).
1 parent 37b2cf7 commit 914790f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

css21/bin/addhanch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ sub addanchor {
9393
$anchor = "$1$2$3"; # Only one of $1, $2, $3 will match.
9494
$anchor1 = "#$anchor";
9595
} else {
96-
$anchor = "q$seqno"; # Use simple sequence number
96+
$anchor = "q$chapno.$seqno"; # Use simple sequence number
9797
$anchor1 = "#$anchor";
9898
}
99-
$anchor1 = "" if ($lvl == 1); # if H1, just go to the top of the page
99+
# $anchor1 = "" if ($lvl == 1); # if H1, just go to the top of the page
100100

101101
# Increment the count, reset higher level counts
102102
$counts[$lvl]++;

0 commit comments

Comments
 (0)