scribble: fix "on this page" rendering
A recent change improved "on this page" handling and also fixed a short-circuit test to almost certainly do what was originally intended, but the test was wrong, so just get rid of it. original commit: 2d5884b26a8aa96cab469b31c8b4d16190f854a9
This commit is contained in:
parent
a84adaeddb
commit
835ef02800
|
@ -529,11 +529,6 @@
|
||||||
h?)))
|
h?)))
|
||||||
|
|
||||||
(define/private (render-onthispage-contents d ri top box-class sections-in-toc?)
|
(define/private (render-onthispage-contents d ri top box-class sections-in-toc?)
|
||||||
(if (andmap (lambda (p) (or (part-whole-page? p ri)
|
|
||||||
(and (part-style? p 'toc-hidden)
|
|
||||||
(all-toc-hidden? p))))
|
|
||||||
(part-parts d))
|
|
||||||
null
|
|
||||||
(let ([nearly-top? (lambda (d)
|
(let ([nearly-top? (lambda (d)
|
||||||
;; If ToC would be collapsed, then
|
;; If ToC would be collapsed, then
|
||||||
;; no section is nearly the top
|
;; no section is nearly the top
|
||||||
|
@ -640,7 +635,7 @@
|
||||||
"???")
|
"???")
|
||||||
(element-content p))
|
(element-content p))
|
||||||
d ri)))))))))
|
d ri)))))))))
|
||||||
ps))))))))
|
ps)))))))
|
||||||
|
|
||||||
(define/public (extract-part-body-id d ri)
|
(define/public (extract-part-body-id d ri)
|
||||||
(or (ormap (lambda (v)
|
(or (ormap (lambda (v)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user