Whitespace change only.

This commit is contained in:
Murray Stokely 2001-09-11 08:56:52 +00:00
parent 116d17104e
commit f0a4faa9b7
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=10654

View file

@ -1,4 +1,4 @@
<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.55 2001/09/11 02:31:50 murray Exp $ -->
<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.56 2001/09/11 08:47:53 murray Exp $ -->
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY % output.html "IGNORE">
@ -210,29 +210,15 @@
<!-- Two-sided Print output ....................................... -->
<![ %output.print.twoside; [
;; From an email by Ian Castle to the DocBook-apps list
;; From an email by Ian Castle to the DocBook-apps list
(define (first-part?)
(let*
(
(book
(ancestor
(normalize "book")
)
)
(nd
(ancestor-member
(current-node)
(define (first-part?)
(let* ((book (ancestor (normalize "book")))
(nd (ancestor-member (current-node)
(append
(component-element-list)
(division-element-list)
)
)
)
(bookch
(children book)
)
)
(division-element-list))))
(bookch (children book)))
(let loop ((nl bookch))
(if (node-list-empty? nl)
#f
@ -243,18 +229,16 @@
(loop (node-list-rest nl)))))))
;; From an email by Ian Castle to the DocBook-apps list
;; From an email by Ian Castle to the DocBook-apps list
(define (first-chapter?)
(define (first-chapter?)
;; Returns #t if the current-node is in the first chapter of a book
(if
(has-ancestor-member? (current-node) (division-element-list))
(if (has-ancestor-member? (current-node) (division-element-list))
#f
(let* ((book (ancestor (normalize "book")))
(nd (ancestor-member
(current-node)
(nd (ancestor-member (current-node)
(append (component-element-list)
(division-element-list))))
(division-element-list))))
(bookch (children book))
(bookcomp (expand-children bookch (list (normalize "part")))))
(let loop ((nl bookcomp))
@ -264,16 +248,13 @@
(if (node-list=? (node-list-first nl) nd)
#t
#f)
(loop (node-list-rest nl)))))
)
)
)
(loop (node-list-rest nl))))))))
; By default, the Part I title page will be given a roman numeral,
; which is wrong so we have to fix it
; By default, the Part I title page will be given a roman numeral,
; which is wrong so we have to fix it
(define (part-titlepage elements #!optional (side 'recto))
(define (part-titlepage elements #!optional (side 'recto))
(let ((nodelist (titlepage-nodelist
(if (equal? side 'recto)
(part-titlepage-recto-elements)
@ -285,19 +266,21 @@
(if (part-titlepage-content? elements side)
(make simple-page-sequence
page-n-columns: %titlepage-n-columns%
;; Make sure that page number format is correct.
;; Make sure that page number format is correct.
page-number-format: ($page-number-format$)
;; Make sure that the page number is set to 1 if this is the first part
;; in the book
;; Make sure that the page number is set to 1 if this is the first part
;; in the book
page-number-restart?: (first-part?)
input-whitespace-treatment: 'collapse
use: default-text-style
;; This hack is required for the RTF backend. If an external-graphic
;; is the first thing on the page, RTF doesn't seem to do the right
;; thing (the graphic winds up on the baseline of the first line
;; of the page, left justified). This "one point rule" fixes
;; This hack is required for the RTF backend. If an
;; external-graphic is the first thing on the page,
;; RTF doesn't seem to do the right thing (the graphic
;; winds up on the baseline of the first line of the
;; page, left justified). This "one point rule" fixes
;; that problem.
(make paragraph
line-spacing: 1pt
(literal ""))
@ -319,7 +302,6 @@
(else
(part-titlepage-default (node-list-first nl) side)))
(loop (node-list-rest nl) (node-list-first nl)))))
(if (and %generate-part-toc%
%generate-part-toc-on-titlepage%
(equal? side 'recto))
@ -336,7 +318,6 @@
(empty-sosofo)))
(empty-sosofo))))
]]>
<!-- Print with justification ..................................... -->