Apache OpenOffice (AOO) Bugzilla – Issue 121155
HTML export: huge excesses of white space due to padding: 100% in some CSS styles
Last modified: 2012-11-01 12:43:15 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.
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.
Use File > Export > XHTML. The document exported by File > Save As > HTML is very different and does not have this problem.
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.