File tree Expand file tree Collapse file tree 3 files changed +170
-125
lines changed Expand file tree Collapse file tree 3 files changed +170
-125
lines changed Original file line number Diff line number Diff line change 1- /* $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.css,v 1.1 2001/09/14 20:37:55 petere Exp $ */
1+ /* $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.css,v 1.2 2001/09/15 00:48:59 petere Exp $ */
22
33/* color scheme similar to www.postgresql.org */
44
@@ -38,6 +38,7 @@ DIV.example {
3838 border-width : 0px ;
3939 border-left-width : 2px ;
4040 border-color : black;
41+ margin : 0.5ex ;
4142}
4243
4344/* less dense spacing of TOC */
Original file line number Diff line number Diff line change 1- <!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v 1 .9 2001/09/14 20:37:55 petere Exp $ -->
1+ <!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v 1 .10 2001/09/15 00 :48:59 petere Exp $ -->
22<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
33
44<!-- must turn on one of these with -i on the jade command line -->
6868
6969(define html-index #t)
7070
71+ ;; Block elements are allowed in PARA in DocBook, but not in P in
72+ ;; HTML. With %fix-para-wrappers% turned on, the stylesheets attempt
73+ ;; to avoid putting block elements in HTML P tags by outputting
74+ ;; additional end/begin P pairs around them.
75+ (define %fix-para-wrappers% #t)
76+
77+ ;; ...but we need to do some extra work to make the above apply to PRE
78+ ;; as well. (mostly pasted from dbverb.dsl)
79+ (define ($verbatim-display$ indent line-numbers?)
80+ (let ((content (make element gi: "PRE"
81+ attributes: (list
82+ (list "CLASS" (gi)))
83+ (if (or indent line-numbers?)
84+ ($verbatim-line-by-line$ indent line-numbers?)
85+ (process-children)))))
86+ (if %shade-verbatim%
87+ (make element gi: "TABLE"
88+ attributes: ($shade-verbatim-attr$)
89+ (make element gi: "TR"
90+ (make element gi: "TD"
91+ content)))
92+ (make sequence
93+ (para-check)
94+ content
95+ (para-check 'restart)))))
96+
97+ ;; ...and for notes.
98+ (element note
99+ (make sequence
100+ (para-check)
101+ ($admonition$)
102+ (para-check 'restart)))
103+
104+ ;;; XXX The above is very ugly. It might be better to run 'tidy' on
105+ ;;; the resulting *.html files.
106+
71107]]> <!-- %output-html -->
72108
73109<![ %output-print; [
You can’t perform that action at this time.
0 commit comments