From: Michael Smith Date: Fri, 5 Aug 2005 08:09:50 +0000 (+0000) Subject: Fixed bug that caused literal .sp to show up in output. (Thanks to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75581b5623d0c7b94ea9958c65cdcc39d77464e5;p=docbook-dsssl Fixed bug that caused literal .sp to show up in output. (Thanks to Costin Stroie for reporting). WARNING: One of the consequences of this change is that the stylesheet no longer generates spaces at the end of certain lines. I had it doing that as a sort of hack to prevent certain kinds of problems in output. It seems like the hack my no longer be necessary. But if I am wrong, this change may cause spaces to show up at the beginning of some lines in "mixed content". If you see those, then this change has introduced a regression, and I will need to go back and figure out the right way to fix it (instead of the kludgy way I was doing it before. Also, instances like the following were showing up in some cases. .PP .sp That is, a .PP macro immediately followed by a .sp macro. I can think of no good read to ever generate that, and I am not sure why it is getting generated. So I have taked the lazy way out and caused the stylesheet to now strip out the .sp from all such instances, leaving just the .PP --- diff --git a/xsl/manpages/utility.xsl b/xsl/manpages/utility.xsl index 585378126..726df8176 100644 --- a/xsl/manpages/utility.xsl +++ b/xsl/manpages/utility.xsl @@ -147,6 +147,7 @@ + .sp @@ -160,18 +161,9 @@ - - + + - - - - - - - - - @@ -187,14 +179,13 @@ preceding-sibling::procedure[1] ) "> - + - diff --git a/xsl/params/man.string.subst.map.xml b/xsl/params/man.string.subst.map.xml index 79199950a..6b5d5f727 100644 --- a/xsl/params/man.string.subst.map.xml +++ b/xsl/params/man.string.subst.map.xml @@ -30,11 +30,14 @@ + + +