Skip to content

Commit 08028fa

Browse files
committed
Handle indentation of verbatim environments in HTML output via CSS.
1 parent af514dc commit 08028fa

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
.NAVHEADER TH { 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,v 1.21 2002/08/05 19:43:31 petere Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v 1.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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy