You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jordan Soet <jd...@interchange.ubc.ca> on 2006/04/26 05:48:55 UTC
linefeed-treatment="ignore" creating # characters
Hi, I'm having a problem with the linefeed-treatment="ignore" option... when
I use it it changes any linefeeds into "#" characters. For example see the
following:
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="my-page">
<fo:region-body margin="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="my-page">
<fo:flow flow-name="xsl-region-body">
<fo:block linefeed-treatment="ignore">...........
<fo:inline>
HI THERE
</fo:inline>
..............
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Which becomes:
...........##HI THERE#..............
Thanks,
Jordan
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: linefeed-treatment="ignore" creating # characters
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
With all the dots, I thought it might not be. Sorry. Ok, only after
copying the content into a stand-alone XML file did I see that there are
tab characters in the file. In this particular case they are not
converted to spaces and because the font does not contain a glyph for
the tab character you get the "#" characters. I'll have to run this by
our whitespace specialists because my interpretation of the case here
could be wrong, but I think you've just uncovered a bug with
linefeed-treatment="ignore".
In the meantime, just replace the tab characters with spaces and you
should at least not get any "#" characters in the output anymore. I
still think the behaviour after that is wrong but we'll have to take a
closer look, first.
On 27.04.2006 02:51:18 Jordan Soet wrote:
> Yes, sorry, I'm using FOP 0.92 Beta, and isn't this a complete FO file?
>
>
> <?xml version="1.0" encoding="iso-8859-1"?>
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="my-page">
> <fo:region-body margin="1in"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="my-page">
> <fo:flow flow-name="xsl-region-body">
> <fo:block linefeed-treatment="ignore">...........
> <fo:inline>
> HI THERE
> </fo:inline>
> ..............
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
>
>
> -----Original Message-----
> From: Jeremias Maerki [mailto:dev@jeremias-maerki.ch]
> Sent: Wednesday, April 26, 2006 3:17 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: linefeed-treatment="ignore" creating # characters
>
> Does this problem still appear if you're using the latest release FOP
> 0.92beta? If yes, please post a complete FO-file so we can easily
> reproduce. Please always state the FOP version you're using when posting
> here.
>
> On 26.04.2006 05:48:55 Jordan Soet wrote:
> > Hi, I'm having a problem with the linefeed-treatment="ignore"
> option... when
> > I use it it changes any linefeeds into "#" characters. For example see
> the
> > following:
> >
> > <?xml version="1.0" encoding="iso-8859-1"?>
> >
> > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> > <fo:layout-master-set>
> > <fo:simple-page-master master-name="my-page">
> > <fo:region-body margin="1in"/>
> > </fo:simple-page-master>
> > </fo:layout-master-set>
> >
> > <fo:page-sequence master-reference="my-page">
> > <fo:flow flow-name="xsl-region-body">
> > <fo:block linefeed-treatment="ignore">...........
> > <fo:inline>
> > HI THERE
> > </fo:inline>
> > ..............
> > </fo:block>
> > </fo:flow>
> > </fo:page-sequence>
> > </fo:root>
> >
> >
> > Which becomes:
> >
> > ...........##HI THERE#..............
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: linefeed-treatment="ignore" creating # characters
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Does this problem still appear if you're using the latest release FOP
0.92beta? If yes, please post a complete FO-file so we can easily
reproduce. Please always state the FOP version you're using when posting
here.
On 26.04.2006 05:48:55 Jordan Soet wrote:
> Hi, I'm having a problem with the linefeed-treatment="ignore" option... when
> I use it it changes any linefeeds into "#" characters. For example see the
> following:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="my-page">
> <fo:region-body margin="1in"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="my-page">
> <fo:flow flow-name="xsl-region-body">
> <fo:block linefeed-treatment="ignore">...........
> <fo:inline>
> HI THERE
> </fo:inline>
> ..............
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
>
>
> Which becomes:
>
> ...........##HI THERE#..............
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org