From e578b6c328022c69234a25ad8901a40bdcf6ca3e Mon Sep 17 00:00:00 2001 From: Eli Barzilay Date: Thu, 3 Jul 2008 10:30:54 +0000 Subject: [PATCH] minor svn: r10577 original commit: 9a737ade303cb7e54793e59fafcaa889b91d54df --- collects/scribble/html-render.ss | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/collects/scribble/html-render.ss b/collects/scribble/html-render.ss index ae1870ac..ca0046cf 100644 --- a/collects/scribble/html-render.ss +++ b/collects/scribble/html-render.ss @@ -391,15 +391,15 @@ [content (if (null? toc-content) content `((a ([href "index.html"] [class "tocviewlink"]) - ,@content)))]) + ,@content)))]) `((div ([class "tocview"]) - (div ([class "tocviewtitle"]) ,@content) - (div nbsp) - ,@(if (null? toc-content) - '() - (toc-wrap - `(table ([class "tocviewlist"] [cellspacing "0"]) - ,@toc-content))))))) + (div ([class "tocviewtitle"]) ,@content) + (div nbsp) + ,@(if (null? toc-content) + '() + (toc-wrap + `(table ([class "tocviewlist"] [cellspacing "0"]) + ,@toc-content))))))) ,@(render-onthispage-contents d ri top (if (part-style? d 'no-toc) "tocview" "tocsub")) ,@(parameterize ([extra-breaking? #t]) @@ -1153,11 +1153,12 @@ (define d-in? (and d (in-plt? e-d))) ;; use an absolute link if the link is from outside the plt tree ;; going in (or if d is #f) - (if (not (and d (cond [(equal? p-in? d-in?) #t] - [d-in? (error 'from-root - "got a link from the PLT going out; ~e" - p)] - [else #f]))) + (if (not (and d (cond + [(equal? p-in? d-in?) #t] + [d-in? (error 'from-root + "got a link from the PLT tree going out; ~e" + p)] + [else #f]))) (url->string (path->url (path->complete-path p))) (let loop ([e-d e-d] [e-p e-p]) (cond