Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355577

Summary: HTML generation produces HTML that does not work as expected on Firefox/Chrome
Product: z_Archived Reporter: elias.kunnas
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: NEW --- QA Contact: Hao Zhou <hao.zhou>
Severity: normal    
Priority: P3 CC: bluesoldier, dannyvuongwchs
Version: 3.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
The sample report reproducing the bug
none
The expected output produced by the internal preview
none
The generated HTML displayed on Firefox and Chrome
none
original sample report design - fixed none

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.