Ralf Hauser wrote: >Bruno, > >Thanks a lot - yes, this kind of works, however it doesn't really solve the >problem, but just postpones it. > ><html><body> ><div><b>a</b>b</div> ><b>c</b>d ></body></html> > >still shows the problem between "c" and "d". >So, either the "<b>c</b>d" gets bracketed with a div tag too or there is a >non-bold character before the first bold one that is without the div. > I try never to have 'loose' parts of HTML in the HTML pages I am writing currently. I always put them between div- or p-tags. I think it's the only elegant way to solve this odd problem without digging into the code. I think that when iText encounters some text that is not inside tags, a Chunk is created. If a b/strong/i/em tag is encountered, it depends on the 'current chunk' what object is created. If it is null, you get the undesired newline. If not, all goes well.
Just like I said yesterday: if I find the time, I can have a look at it, but for the moment I have other priorities. br, Bruno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions