You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Christopher R. Maden" <cr...@exemplary.net> on 1999/12/01 10:40:45 UTC
wrap-option="no-wrap"
FOP doesn't appear to honor literal layout environments, such as program
listings. This FO:
<fo:block wrap-option="no-wrap" text-align="start" whitespace-treatment
="preserve" font-family="monospace" space-before.minimum="0.8em" space-before.op
timum="1em" space-before.maximum="1.2em"><a href="#perl-invocation-w">Perl invoc
ation</a>
<a href="#use-strict">Strict syntax checking</a>
<a href="#print-message">Generate Output</a>
</fo:block>
becomes this PDF:
/F9 12 Tf
1 0 0 1 100.0 603.098 Tm (Perl) Tj
1 0 0 1 136.0 603.098 Tm (invocation) Tj
1 0 0 1 215.2 603.098 Tm (Strict) Tj
1 0 0 1 265.6 603.098 Tm (syntax) Tj
1 0 0 1 316.0 603.098 Tm (checking) Tj
1 0 0 1 380.8 603.098 Tm (Generate) Tj
1 0 0 1 445.6 603.098 Tm (Output) Tj
/F7 16 Tf
which prints all the text on one line.
-Chris
--
Christopher R. Maden, Solutions Architect
Exemplary Technologies
One Embarcadero Center, Ste. 2405
San Francisco, CA 94111
Re: wrap-option="no-wrap"
Posted by James Tauber <jt...@jtauber.com>.
> FOP doesn't appear to honor literal layout environments, such as program
> listings.
It works for me:
<fo:block font-family="monospace" white-space-treatment="preserve">
<![CDATA[
<?xml version="1.0"?>
<document>
<heading>This is a heading</heading>
<list>
<item>Item one</item>
<item>Item two</item>
</list>
</document>
]]>
</fo:block>
The above has CRLFs so I wonder if FOP has a bug with just LFs.
James