Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4284002

Browse files
committed
Markup examples as examples. Fix formatting of examples.
1 parent184c4af commit4284002

File tree

3 files changed

+170
-125
lines changed

3 files changed

+170
-125
lines changed

‎doc/src/sgml/stylesheet.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 */

‎doc/src/sgml/stylesheet.dsl

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v1.9 2001/09/14 20:37:55 petere Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v1.10 2001/09/1500: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 -->
@@ -68,6 +68,42 @@
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; [

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp