Issue 121155 - HTML export: huge excesses of white space due to padding: 100% in some CSS styles
Summary: HTML export: huge excesses of white space due to padding: 100% in some CSS s...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-04 09:13 UTC by callow.mark
Modified: 2012-11-01 12:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
2 page .odt whose export has the bad padding (25.18 KB, application/vnd.oasis.opendocument.text)
2012-11-01 06:14 UTC, callow.mark
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description callow.mark 2012-10-04 09:13:41 UTC
Various parts of my exported HTML document have huge excesses of white space, for example before and after sections in the Code style there is half a screen of white-space. This is caused by "padding: 100%" in the associated CSS style. E.g.

.Code_borderStart { font-size:9pt; font-family:Courier New; writing-mode:page; margin-left:2.032cm; margin-right:0cm; margin-top:0cm; line-height:0.406cm; text-indent:0cm; background-color:transparent; padding:100%; padding-bottom:0cm;  border-bottom-style:none; }

There is similar padding in the .Code_borderEnd style and many other paragraph styles.

Manually changing to "padding: 0%;" basically fixes the problem although the spacing then is a little tight.

I cannot attach the source document here because this is a public list. I'll be happy to send it to whoever works on the bug though.
Comment 1 callow.mark 2012-11-01 06:14:12 UTC
Created attachment 79844 [details]
2 page .odt whose export has the bad padding

Here is a short document. When exported, the .html file shows the bug. Look at the Code_* styles, for example.
Comment 2 callow.mark 2012-11-01 06:15:30 UTC
Use File > Export > XHTML. The document exported by File > Save As > HTML is very different and does not have this problem.
Comment 3 Regina Henschel 2012-11-01 12:43:15 UTC
The documents contains the same problem to that I have reported in bug 119401. It is the problem that paragraphs, which have an indent, have set a fo:margin=100% property.

Here I see the additional problem, that a padding is generated. A padding would be the place between a border and the text, which has the same background as the text. Such property is not contained in the attached text and I cannot see such property in the document source. So this is likely an additional error in the export filter.