Hello!
I'm upgrading to FOP 0.95 from 0.20.5 and from 1.70.1 to 1.74 for the DB 
stylesheets, and I've noticed that in my PDF output, *some* (but not all) of 
the long code lines (inside a <programlisting>) that have NO spaces in them no 
longer wrap and just keep going off the page. With the old FOP and stylesheets, 
all the long lines in <programlistings> wrapped, just not necessarily in a spot 
that made any sense. Now, just some of the lines don't wrap. Or a small amount 
of the text wraps onto a second line, but then there's a third line that just 
keeps going off the page (strange?). We don't want to manually break the lines, 
because we want them to be unbroken in our HTML output (so folks can copy/paste 
the code and have it work).

I'm using FOP 0.95, Saxon 6.5.5, and Xerces 2.8.0. My PDF customization layer 
has the following stuff related to wrapping. I think we originally tried 
hyphenate.verbatim until we realized it wasn't supported by FOP, so it's turned 
off (I'm assuming it's still not supported).

<xsl:attribute-set name="monospace.properties">
                        <xsl:attribute name="font-size">9pt</xsl:attribute>
                        <xsl:attribute name="wrap-option">wrap</xsl:attribute>
</xsl:attribute-set>

<xsl:param name="hyphenate.verbatim" select="0"/>
<xsl:attribute-set name="monospace.verbatim.properties"
                        use-attribute-sets="verbatim.properties 
monospace.properties">
                        <xsl:attribute name="wrap-option">wrap</xsl:attribute>
                        <xsl:attribute 
name="hyphenation-character">&#0160;</xsl:attribute>
                        <!--  revised to no character 9/27/2007 -->
                        <xsl:attribute name="hyphenate">true</xsl:attribute>
</xsl:attribute-set>

Any thoughts on this? I'm going to consult the FOP-users list also.

thanks!
cheri
--
Cheri Dennison / Technical Writer
AWS Platform Group
[EMAIL PROTECTED]

Reply via email to