OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Troubles formatting <programlisting>

You did not mention which FO processor you are using, but the "overflows the top margin" indicates it is probably FOP. 
Overflowing the right margin is the default behavior for the programlisting template, which does not insert line breaks, because line breaks can be significant in some programming languages.  If you want to insert line breaks, you can adjust the wrap-option property as described in:
Bob Stayton
Sagehill Enterprises
----- Original Message -----
Sent: Wednesday, December 12, 2007 2:55 PM
Subject: [docbook-apps] Troubles formatting <programlisting>

When using the <programlisting> element for PDF publishing, the content of this block does not stick to the page format and the content overflows the page margins.
There is a curious point:
- If I enclose the <programlisting> block inside a <para> element, the content overflows the right and the top margins.
- If the <programlisting> block is outside other blocks (child of a <section>) the content overflows ONLY the right margin.
Thank you very much in advance.

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.1/1181 - Release Date: 11/12/2007 17:05

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]