iMyth / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
1 stars 0 forks source link

broken tables if parent css contains white-space: pre-wrap; (PDF) #227

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. define a table with a td, that have "white-space: pre-wrap;"
2. put another table in that td
3. in the 2nd table on tr with 4 tds and one tr with one td (colspan="4")
4. create a pdf with that html-code

What is the expected output? What do you see instead?
xpceted: a table in a table, in the inner table an row with 4 columns and the 
second row with one row with the same width as the 4 rows from the first 
together.

instead: you get a table where you have to set colspan to 8. border-collapse 
doesn't really work. Maybe a table with 8 columns but every 2nd isn't a td from 
the html-code.

What version of the product are you using? On what operating system?
9.0.4, itext 2.1.7, JDK 1.6.0_33, Windows 7 Pro 64-Bit

if there aren't any \n at the end of the line (all html-code in one line), the 
problem doesn't exist.

Original issue reported on code.google.com by annonyme...@gmail.com on 11 Dec 2013 at 2:34