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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- ________________________________ Rajesh Warrier
