This is the mail archive of the mailing list .

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: programlisting extra line


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:

background-color: #CCCCCC;

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" <>
To: "ion" <>; <>
Sent: Saturday, November 09, 2002 9:40 PM
Subject: Re: DOCBOOK-APPS: programlisting extra line

> Hi,
> just end your CDATA and programmlisting directly after your last
> code word. An example for the code you sent:
> <programmlisting>
> <![CDATA[
> 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"/>
> Greetings,
> Marko
> 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?
> >
> >
> >\.-~-./
> >-.ion.-
> >/.-~-.\

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]