From: Michael Smith Date: Fri, 20 May 2005 09:08:59 +0000 (+0000) Subject: Verbatim environment "Grand Unification" fix. X-Git-Tag: release/1.79.1~6^2~3486 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7ee21a7885f7396709518915d3b14045828a574;p=docbook-dsssl Verbatim environment "Grand Unification" fix. Attempte to fix handling of verbatim environments (literallayout, programlisting, screen) and, in a related way, text nodes. Particularly in mixed-content blocks. I think I got it working... Closes #1167995, #975243, #935833, #763861, #728932, #628393, #595213. Thanks to Hendrik Sattler, Tobias Reif, Tommi Virtanen, Dennis Grace, and Matthias Andree for reporting the problems. Sorry it took so long for the fix. --- diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl index 5f9988979..43e81c470 100644 --- a/xsl/manpages/docbook.xsl +++ b/xsl/manpages/docbook.xsl @@ -82,39 +82,77 @@ - - .PP + + + + - - + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + - + test="translate(substring(., string-length(.), 1),' ',' ') + = ' ' and following-sibling::node()[name(.)!='']"> + - + + + + + + + + .PP + @@ -123,10 +161,8 @@ - - + - @@ -363,9 +399,28 @@ '' - + + + + + + + + + + + + + + + + + + .nf + .fi diff --git a/xsl/manpages/lists.xsl b/xsl/manpages/lists.xsl index 249e9c940..694a5f3e4 100644 --- a/xsl/manpages/lists.xsl +++ b/xsl/manpages/lists.xsl @@ -6,37 +6,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + .TP diff --git a/xsl/manpages/synop.xsl b/xsl/manpages/synop.xsl index 940b73c1e..4910f7a3e 100644 --- a/xsl/manpages/synop.xsl +++ b/xsl/manpages/synop.xsl @@ -1,14 +1,16 @@ - + + + .PP @@ -129,12 +131,6 @@ .ad .hy - - .nf - - .fi - - void