This is the mail archive of the
mailing list .
Re: programlisting extra line
- From: Marko Petersen <lg002237 at rzserv2 dot fhnon dot de>
- To: ion <vnhu38f93 at subdimension dot com>, docbook-apps at lists dot oasis-open dot org
- Date: Sun, 10 Nov 2002 00:30:33 +0100
- Subject: Re: DOCBOOK-APPS: programlisting extra line
- References: <email@example.com>
sorry, I suggested PDF :-)
In HTML set shade.verbatim to 0, otherwise a table is
generated and this does not have width=100%.
Programlisting is generated in pre-tags. So you can
just add some css-style for this:
You can set your stylesheet as param:
<xsl:param name="html.stylesheet" select="'mystyle.css'"/>
At 22:51 09.11.2002 +0000, ion wrote:
I am already making sure that there are no gaps between
programlisting and content of programlisiting as I am
aware of how the XML spec defines the use of whitespace.
The whole idea of using the table is so that the background
is shaded but across the whole page, not just to the width
of the text. If you look at the XHTML produced if one uses
just share.verbatim="1", tables are used, the only difference
is that the width is not set to anything so it only goes as
wide as the text.
Oh, and btw, there is no need to use CDATA sections at all,
I always use character entities instead.
----- Original Message -----
From: "Marko Petersen" <firstname.lastname@example.org>
To: "ion" <email@example.com>; <firstname.lastname@example.org>
Sent: Saturday, November 09, 2002 9:40 PM
Subject: Re: DOCBOOK-APPS: programlisting extra line
> just end your CDATA and programmlisting directly after your last
> code word. An example for the code you sent:
> blah blah blah ]]!></programmlisting><!-- ends in the same line -->
> This should work. A tip: you do not have to encapsulate code
> in tables, just set the following parameter:
> <xsl:param name="shade.verbatim" select="1"/>
> At 21:28 09.11.2002 +0000, ion wrote:
> >Does anyone have a suitable solution to the "extra line" problem
> >illustrated by the XHTML code below:
> >blah blah blah
> >I encapsulate programlistings and screen sections in tables so
> >that they are shaded, but, I get the extra line that is produced
> >by the code above. Any ideas on how to remove it?