This is the mail archive of the docbook-apps@lists.oasis-open.org 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]

<programlisting> in a table cell


Platform: Intel PIII, debian testing, Blackdown Java SDK 1.3.1,
	  Saxon 6.4.4, DocBook XML 4.1.2, DocBook-XSL 1.48,
	  Fop-0.20.3rc

I have an <informaltable> with two columns.  The left cell in each row
contains a fragment from a configuration file in a <programlisting>
element. 

My problem is that in the formatted PDF, some of the left cells'
content is so long that it is writing into the right cell.

I tried replacing <programlisting> with <computeroutput>, but the
results weren't good.  Long cells were broken into multiple lines, but
the linebreak wasn't done on spaces, with the rest of the text left
justified.  Instead the line breaks were done in the middle of words,
with the intervening space being stretched to fill the cell.

I've tried putting in a 
	<colspec colnum="1" colwidth="85%"/>
at the start of the <tgroup>, but that didn't seem to have any
effect. 

Does anyone have a solution?

Thanx!


- Steinar


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