[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-user
Subject: Re: Overlapping lines in a paragraph
From: "Rajesh Warrier" <rajesh.warrier () gmail ! com>
Date: 2008-04-18 13:49:38
Message-ID: 61ed064e0804180649i5d29e482s1c0127bfc97de3a6 () mail ! gmail ! com
[Download RAW message or body]
Thanks Jeremias! The wrapper works for me fine. That saved my life!
I will make that Bugzilla entry soon.
Rajesh
_______________________________________________________
On Fri, Apr 18, 2008 at 3:22 AM, Jeremias Maerki <dev@jeremias-maerki.ch>
wrote:
> Looks like a bug in FOP. The fo:inline elements which are parent to
> other fo:block elements seem to cause this somehow. If you can change
> the fo:inlines to fo:wrapper, that should help (as a work-around).
>
> At any rate, one thing is wrong about the generated FO: space-before and
> space-after do not apply to fo:inline. As these properties are not
> inherited, they shouldn't be there. Using fo:inline for changing the font
> in-line is probably not the best idea. fo:wrapper is certainly a more
> light-weight element to use in such a case.
>
> @fop-devs: On first sight, the generated element list looks pretty good
> but something is going wrong during rendering.
>
> Rajesh, would you mind attaching your overlapping.fo to a new Bugzilla
> entry and copying the problem description in there? Thanks!
> https://issues.apache.org/bugzilla/enter_bug.cgi
>
> On 18.04.2008 05:36:05 Rajesh Warrier wrote:
> > Hi,
> > I am using FOP 0.94 to generate PDF from an XHTML. I am using TimyMCE
> text
> > editor to get XHTML. If I copy-paste from Microsoft word I get lots of
> > <span> and <font> tags. When I generate a PDF I see that the second line
> of
> > a paragraph overlaps the first line. Rest of the lines look fine.
> >
> > In my stylesheet I commented out the space-before attribute for
> paragraphs
> > leaving the space-after value intact. This removed the overlap problem.
> > However, the page breaks went beserk and suddenly the second line moved
> too
> > far down from the first line.
> >
> > So it's either overlapping lines or too much gap between lines. Can
> anybody
> > please tell me if this is a bug? If not what should I do to fix this.
> The
> > XHTML is not in my control (as in fed by the system).
> >
> > I am attaching the XHTML, my stylesheet and both generated FO files.
> >
> > Thanks
> >
> > Rajesh
>
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
--
________________________________
Rajesh Warrier
[Attachment #3 (text/html)]
<div>Thanks Jeremias! The wrapper works for me fine. That saved my life!</div>
<div> </div>
<div>I will make that Bugzilla entry soon.</div>
<div> </div>
<div>Rajesh</div>
<div>_______________________________________________________<br><br></div>
<div class="gmail_quote">On Fri, Apr 18, 2008 at 3:22 AM, Jeremias Maerki \
<dev@jeremias-maerki.ch> wrote:<br> <blockquote class="gmail_quote" \
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px \
solid">Looks like a bug in FOP. The fo:inline elements which are parent to<br>other \
fo:block elements seem to cause this somehow. If you can change<br> the fo:inlines to \
fo:wrapper, that should help (as a work-around).<br><br>At any rate, one thing is \
wrong about the generated FO: space-before and<br>space-after do not apply to \
fo:inline. As these properties are not<br>inherited, they shouldn't be there. \
Using fo:inline for changing the font<br> in-line is probably not the best idea. \
fo:wrapper is certainly a more<br>light-weight element to use in such a \
case.<br><br>@fop-devs: On first sight, the generated element list looks pretty \
good<br>but something is going wrong during rendering.<br> <br>Rajesh, would you mind \
attaching your <a href="http://overlapping.fo/" target="_blank">overlapping.fo</a> to \
a new Bugzilla<br>entry and copying the problem description in there? Thanks!<br><a \
href="https://issues.apache.org/bugzilla/enter_bug.cgi" \
target="_blank">https://issues.apache.org/bugzilla/enter_bug.cgi</a><br>
<div>
<div></div>
<div class="Wj3C7c"><br>On 18.04.2008 05:36:05 Rajesh Warrier wrote:<br>> \
Hi,<br>> I am using FOP 0.94 to generate PDF from an XHTML. I am using TimyMCE \
text<br>> editor to get XHTML. If I copy-paste from Microsoft word I get lots \
of<br> > <span> and <font> tags. When I generate a PDF I see that the \
second line of<br>> a paragraph overlaps the first line. Rest of the lines look \
fine.<br>><br>> In my stylesheet I commented out the space-before attribute for \
paragraphs<br> > leaving the space-after value intact. This removed the overlap \
problem.<br>> However, the page breaks went beserk and suddenly the second line \
moved too<br>> far down from the first line.<br>><br>> So it's either \
overlapping lines or too much gap between lines. Can anybody<br> > please tell me \
if this is a bug? If not what should I do to fix this. The<br>> XHTML is not in my \
control (as in fed by the system).<br>><br>> I am attaching the XHTML, my \
stylesheet and both generated FO files.<br> ><br>> Thanks<br>><br>> \
Rajesh<br><br><br><br><br></div></div>Jeremias \
Maerki<br><br><br>---------------------------------------------------------------------<br>To \
unsubscribe, e-mail: <a \
href="mailto:fop-users-unsubscribe@xmlgraphics.apache.org">fop-users-unsubscribe@xmlgraphics.apache.org</a><br>
For additional commands, e-mail: <a \
href="mailto:fop-users-help@xmlgraphics.apache.org">fop-users-help@xmlgraphics.apache.org</a><br><br></blockquote></div><br><br \
clear="all"><br>-- <br>________________________________<br> Rajesh Warrier
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic