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

Commit08028fa

Browse files
committed
Handle indentation of verbatim environments in HTML output via CSS.
1 parentaf514dc commit08028fa

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

‎doc/src/sgml/stylesheet.css

Lines changed: 5 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.3 2002/03/11 05:02:04 petere Exp $ */
1+
/* $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.css,v 1.4 2002/10/12 16:33:43 petere Exp $ */
22

33
/* color scheme similar to www.postgresql.org */
44

@@ -53,6 +53,10 @@ DIV.EXAMPLE {
5353
padding-bottom:0ex;
5454
}
5555

56+
.SCREEN, .SYNOPSIS, .PROGRAMLISTING {
57+
margin-left:4ex;
58+
}
59+
5660
/* miscellaneous */
5761

5862
.NAVHEADERTH{font-style: italic; }

‎doc/src/sgml/stylesheet.dsl

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v1.21 2002/08/05 19:43:31 petere Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v1.22 2002/10/12 16:33:43 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 -->
@@ -52,19 +52,16 @@
5252
(define %honorific-punctuation%"")
5353

5454
;; Change display of some elements
55+
(element command ($mono-seq$))
5556
(element envar ($mono-seq$))
5657
(element lineannotation ($italic-seq$))
5758
(element structfield ($mono-seq$))
5859
(element structname ($mono-seq$))
5960
(element symbol ($mono-seq$))
61+
(element token ($mono-seq$))
6062
(element type ($mono-seq$))
6163
(element (programlisting emphasis) ($bold-seq$)) ;; to highlight sections of code
6264

63-
;; Indentation of verbatim environments
64-
(define %indent-programlisting-lines%" ")
65-
(define %indent-screen-lines%" ")
66-
(define %indent-synopsis-lines%" ")
67-
6865

6966
;; Bibliography things
7067

@@ -244,6 +241,12 @@
244241
(define %refentry-new-page% #t)
245242
(define %refentry-keep% #f)
246243

244+
;; Indentation of verbatim environments. (This should really be done
245+
;; with start-indent in DSSSL.)
246+
(define %indent-programlisting-lines%" ")
247+
(define %indent-screen-lines%" ")
248+
(define %indent-synopsis-lines%" ")
249+
247250

248251
;;Default graphic format: Jadetex wants eps, pdfjadetex wants pdf.
249252
;; (Note that pdfjadetex will not accept eps, that's why we need to

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp