From 08028faa2202123f5479f84f64d4ece906cb955a Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 12 Oct 2002 16:33:43 +0000 Subject: [PATCH] Handle indentation of verbatim environments in HTML output via CSS. --- doc/src/sgml/stylesheet.css | 6 +++++- doc/src/sgml/stylesheet.dsl | 15 +++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/src/sgml/stylesheet.css b/doc/src/sgml/stylesheet.css index 2dacf60132..9852436f22 100644 --- a/doc/src/sgml/stylesheet.css +++ b/doc/src/sgml/stylesheet.css @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.css,v 1.3 2002/03/11 05:02:04 petere Exp $ */ +/* $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.css,v 1.4 2002/10/12 16:33:43 petere Exp $ */ /* color scheme similar to www.postgresql.org */ @@ -53,6 +53,10 @@ DIV.EXAMPLE { padding-bottom: 0ex; } +.SCREEN, .SYNOPSIS, .PROGRAMLISTING { + margin-left: 4ex; +} + /* miscellaneous */ .NAVHEADER TH { font-style: italic; } diff --git a/doc/src/sgml/stylesheet.dsl b/doc/src/sgml/stylesheet.dsl index 6da17b003a..55a97078f9 100644 --- a/doc/src/sgml/stylesheet.dsl +++ b/doc/src/sgml/stylesheet.dsl @@ -1,4 +1,4 @@ - + @@ -52,19 +52,16 @@ (define %honorific-punctuation% "") ;; Change display of some elements +(element command ($mono-seq$)) (element envar ($mono-seq$)) (element lineannotation ($italic-seq$)) (element structfield ($mono-seq$)) (element structname ($mono-seq$)) (element symbol ($mono-seq$)) +(element token ($mono-seq$)) (element type ($mono-seq$)) (element (programlisting emphasis) ($bold-seq$)) ;; to highlight sections of code -;; Indentation of verbatim environments -(define %indent-programlisting-lines% " ") -(define %indent-screen-lines% " ") -(define %indent-synopsis-lines% " ") - ;; Bibliography things @@ -244,6 +241,12 @@ (define %refentry-new-page% #t) (define %refentry-keep% #f) +;; Indentation of verbatim environments. (This should really be done +;; with start-indent in DSSSL.) +(define %indent-programlisting-lines% " ") +(define %indent-screen-lines% " ") +(define %indent-synopsis-lines% " ") + ;; Default graphic format: Jadetex wants eps, pdfjadetex wants pdf. ;; (Note that pdfjadetex will not accept eps, that's why we need to -- 2.40.0