Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355577 - HTML generation produces HTML that does not work as expected on Firefox/Chrome
Summary: HTML generation produces HTML that does not work as expected on Firefox/Chrome
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Hao Zhou CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-23 17:10 EDT by elias.kunnas CLA
Modified: 2012-02-24 00:55 EST (History)
2 users (show)

See Also:


Attachments
The sample report reproducing the bug (25.61 KB, application/octet-stream)
2011-08-23 17:15 EDT, elias.kunnas CLA
no flags Details
The expected output produced by the internal preview (18.43 KB, image/png)
2011-08-23 17:16 EDT, elias.kunnas CLA
no flags Details
The generated HTML displayed on Firefox and Chrome (12.20 KB, image/png)
2011-08-23 17:17 EDT, elias.kunnas CLA
no flags Details
original sample report design - fixed (25.56 KB, application/octet-stream)
2012-02-23 21:15 EST, Danny Luong CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description elias.kunnas CLA 2011-08-23 17:10:51 EDT
Build Identifier: 20110615-0604

The following is a pared-down version of a table that produces a "normal-looking" table on the internal preview and on Internet Explorer when viewed as HTML, but which produces a lot of extra whitespace on Firefox and Chrome.


Reproducible: Always

Steps to Reproduce:
The example report produces the inconsistency when the table is placed within the grid. If the table is removed from within the grid, everything works as expected. The bug cannot be readily reproduced with an arbitrary grid and an arbitrary table (the particular grid seems to be the key to it).
Comment 1 elias.kunnas CLA 2011-08-23 17:15:21 EDT
Created attachment 202035 [details]
The sample report reproducing the bug
Comment 2 elias.kunnas CLA 2011-08-23 17:16:42 EDT
Created attachment 202036 [details]
The expected output produced by the internal preview
Comment 3 elias.kunnas CLA 2011-08-23 17:17:32 EDT
Created attachment 202037 [details]
The generated HTML displayed on Firefox and Chrome
Comment 4 Danny Luong CLA 2012-02-23 21:10:41 EST
I think the problem is coming from the example itself. If you go to the XML Source, you can find a line where it says, 

<property name="whiteSpace">pre</property>

The whiteSpace pre format setting makes the report wraps to new line after every line break in html format.

I tried to reproduce this error with different table and grid setting but never able to introduce this line into the report design.

Are you sure this property setting didn't get introduced into this particular report design manually by mistake?

I'm going to attached the fixed sample report that works correctly, displaying the row correctly without extra in both html and other views.
Comment 5 Danny Luong CLA 2012-02-23 21:15:00 EST
Created attachment 211550 [details]
original sample report design - fixed
Comment 6 Danny Luong CLA 2012-02-24 00:55:00 EST
In Layout view, if you select the bottom row and change the Whitespace option from Preformatted to Auto, the problem would go away.