toc links fix
svn: r10678
This commit is contained in:
parent
d406fb6dcf
commit
5f30464c0e
|
@ -404,8 +404,11 @@
|
||||||
(let-values ([(t n) (toc-item->title+num c #t)])
|
(let-values ([(t n) (toc-item->title+num c #t)])
|
||||||
`(tr () (td ([align "right"]) ,@n) (td () ,@t)))))))))
|
`(tr () (td ([align "right"]) ,@n) (td () ,@t)))))))))
|
||||||
(define (toc-content)
|
(define (toc-content)
|
||||||
(for/list ([t toc-chain] [i (in-naturals)])
|
;; no links -- the code constructs links where needed
|
||||||
(toc-item->block t i)))
|
(parameterize ([current-no-links #t]
|
||||||
|
[extra-breaking? #t])
|
||||||
|
(for/list ([t toc-chain] [i (in-naturals)])
|
||||||
|
(toc-item->block t i))))
|
||||||
`((div ([class "tocset"])
|
`((div ([class "tocset"])
|
||||||
,@(if (part-style? d 'no-toc)
|
,@(if (part-style? d 'no-toc)
|
||||||
null
|
null
|
||||||
|
|
Loading…
Reference in New Issue
Block a user