Apache OpenOffice (AOO) Bugzilla – Issue 22174
Export to html layout problem: right, center alignment lost.
Last modified: 2013-08-07 14:38:26 UTC
When exporting sxw file or doc file to html some layout problem will occur: right, center and left alignment is not exported to html
Created attachment 10986 [details] sxw file for testing export to html problem
Created attachment 10987 [details] doc file for testing export to html
Created attachment 10988 [details] screenshot exported html at internet explorer 6, win xp
HI->ES: You or MRU
Works for me. Please, when reporting HTML export problem: always indicate which browser you use to view the result (test it also yourself before submitting) and which export format/encoding you used in Tools - Options -Load/Save - HTML Compatibility (test it also yourself before submitting)
Utomo > ES: if you read my attachements description you will find what you ask screenshot exported html at internet explorer 6, win xp. How can I make the screenshot if I didn't view it ? I use default setting as this is mostly used by user. and this is mostly no need to report in the issue if we use default setting. reopen, as there is no reason to resolve this issue
ES->Utomo: you're right I can now reproduce it. But to my last comments: I meant that trying a little bit the different export/import formats and experimenting with other browsers (if possible) *before submitting* an issue helps us surrounding the problem and saves time. Also, the fact that I can *see* (screen shot) you have a problem does not make me *reproduce* this problem.
ES->MIB: please avluate when a css style like: P.myclass {...text-align: left;...} is defined and a a paragraph overrides this definition with an hard formatting like this: <P CLASS="myclass" ALIGN=RIGHT...> this hard formatting is ignored by the browsers and the css style only is affected. OOo only shows correctly shows the hard formatting. Who's right?
utomo> ES: OK next time I will try if possible to try more and give more data so will be easier for developer to trace the problem. Just note: The CSS style is made by OOo when export, so it probably can happens in most export to html.
I didn't find a specific rule for this. However HTML 3.2 did not define the CLASS at all, and ALIGN is deprectated in HTML 4. Anyway, it seems to me that ignoring the ALIGN specification is most reasonable. Since the specifying two different values (left and right) for one and the same property (align) in two different ways (HTML and CSS) seems not be very consistent, and an issue that is related to resolving this inconsistency seems not be a P3 for me.
*** Issue 22124 has been marked as a duplicate of this issue. ***
Hi Michael Brauer, this issue and issue 22176 exist since 2003, please consider a target maybe 2.01 ? Thanks
This is a basic layout for html. without this, the OOo will not be able to use as HTML editor. just my 2c
Created attachment 52519 [details] Source file with a centred image
Created attachment 52520 [details] Resulting HTML with conflicting ALIGN tags
I agree that this is a serious problem, since it affects even very simple layouts, and make OpenOffice.org look like a very lousy HTML editor. Looking at the attached files centre.*, the reference to the image in centre.html has conflicting tags: - The paragraph tag correctly says to align CENTER, - But the image has another ALIGN tag saying LEFT which overrides this. If I manually delete the ALIGN= tag from the image, I get the correct result.