Hi, 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: http://www.sagehill.net/docbookxsl/FittingText.html#BreakLongLines Bob Stayton Sagehill Enterprises [EMAIL PROTECTED] ----- Original Message ----- From: Pedro Pastor To: [email protected] Cc: 'Pedro Pastor' Sent: Wednesday, December 12, 2007 2:55 PM Subject: [docbook-apps] Troubles formatting <programlisting> Hello, 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. Pedro 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
