From: Michael Smith Date: Thu, 27 Mar 2008 12:07:43 +0000 (+0000) Subject: Changed handling of hanging indents for cmdsynopsis, funcsynopsis, X-Git-Tag: release/1.79.1~6^2~1376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9acd17f15a54276bb24b085975355fe2e5b10ec6;p=docbook-dsssl Changed handling of hanging indents for cmdsynopsis, funcsynopsis, and synopfragment such that they now look correct in non-TTY/PS output. We now use the groff \w escape to hang by the actual width -- in the current font -- of the command, funcdef, or synopfragment references number (as opposed to hanging by the number of characters). This rendering in TTY output remains the same, since the width in monospaced TTY output is the same as the number of characters. Also, created new synopsis-block-start and synopsis-block-end templates to use for cmdsynopsis and funcsynopsis instead of the corresponding verbatim-* templates. Along with those changes, also corrected a problem that caused the content of synopfragment to be dropped, and made a vertical-spacing change to adjust spacing around table titles and among sibling synopfragment instances. --- diff --git a/xsl/manpages/synop.xsl b/xsl/manpages/synop.xsl index 21ce5b0b7..ff2482195 100644 --- a/xsl/manpages/synop.xsl +++ b/xsl/manpages/synop.xsl @@ -30,7 +30,7 @@ ) - + @@ -46,23 +46,23 @@ - - + + - + .HP - - - - - + \w' + ( + + ) + \ 'u ( ) - + \ @@ -162,13 +162,22 @@ .hy 0 + .HP - + \w' + + + + + + + + + \ 'u - - + .ad @@ -261,12 +270,19 @@ + .HP - - - + \w' + + + + + + + + + ('u - . @@ -307,7 +323,7 @@ .RE - + diff --git a/xsl/manpages/table.xsl b/xsl/manpages/table.xsl index 74f94235d..8321bd308 100644 --- a/xsl/manpages/table.xsl +++ b/xsl/manpages/table.xsl @@ -125,6 +125,7 @@ + .sp . diff --git a/xsl/manpages/utility.xsl b/xsl/manpages/utility.xsl index 6737eb8bc..8212399ad 100644 --- a/xsl/manpages/utility.xsl +++ b/xsl/manpages/utility.xsl @@ -88,6 +88,14 @@ .ps +1 + + .fam C + + + + .fam + + @@ -172,7 +180,6 @@ - .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1