This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] excessive space before/after screen and programlisting
- From: "Robert P. J. Day" <rpjday at mindspring dot com>
- To: docbook apps list <docbook-apps at lists dot oasis-open dot org>
- Date: Sat, 2 Aug 2003 13:05:06 -0400 (EDT)
- Subject: [docbook-apps] excessive space before/after screen and programlisting
i'm using xsltproc and FOP to turn docbook into PDF, and i seem
to be getting excessive space both before and after my verbatim
environments like <screen> and <programlisting>. here's my
stylesheet fragment to mess with verbatim elements:
---------------------------------
<xsl:param name="shade.verbatim" select="1"/>
<xsl:attribute-set name="verbatim.properties">
<xsl:attribute name="space-before.minimum">0.0em</xsl:attribute>
<xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.1em</xsl:attribute>
<xsl:attribute name="space-after.minimum">0.0em</xsl:attribute>
<xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
<xsl:attribute name="line-height">160%</xsl:attribute>
</xsl:attribute-set>
---------------------------------
now, the shading works, and adjusting the line height also
works, but i still seem to get excessive space both before the
entire <screen> or <programlisting>. i added the shading to
verify that that space wasn't part of, say, the paragraph above
or below. so i shaded and, sure enough, at the start and
end of each verbatim, there's enough space to almost put in
another entire line of text.
note that i cranked down the space-{before,after} to almost
nothing, but that doesn't seem to help.
am i not adjusting the correct attributes here?
rday
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org