Created attachment 58828 [details] ODT for HTML export When exporting an ODT file with tables (see attached example) to HTML by using File -> Save as... -> HTML document (OpenOffice.org Writer) the exported HTML file has its outer table borders set to none or 0px or something like that if the table has only vertical OR horizontal lines in its grid. Steps to reproduce: 1) Open attached TableExportExample.odt 2) Click File -> Save as... 3) Select HTML document from the dropdown list 4) Save 5) Open exported HTML file in Mozilla Firefox (MS Internet Explorer is not interpreting the tables correctly, hence showing the borders incorrectly) 6) Compare HTML view to ODT view
Created attachment 58829 [details] Exported HTML file
Created attachment 58830 [details] Screenshot of exported HTML file view
This is also reproducable in LibO 3.4.5 & 3.4.6 for me.
Confirmed with LibO 3.3.4, 3.4.5, and 3.5.2 RC1 on Windows XP / Vista 64 (same error). Works fine with OpenOffice.org 3.1 => REGRESSION
so this is another regression from d18feffd49f4481626417daac7984b2a7e70c3bf, which changed sw/source/filter/html/htmltabw.cxx to no longer write BORDER and BORDERCOLOR attributes on TABLE elements, but instead various CSS "border" properties into STYLE attributes of the TD elements. the problem is that there is still a "RULES=ROWS" (in case of first table) or "RULES=COLS" (in case of last table) attribute on the TABLE element, which causes Mozilla (FF11) to draw _only_ the horizontal (resp. vertical) borders (but strangely the WebKit based Epiphany draws all borders). fixed that now on master.
Michael Stahl committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=e1424390d45deb75a75a167e7eba36c012f32d74 fdo#47670: sw: HTML: fix table border export:
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=b16cce86e7acebbe485fadb989687a55605453e0&g=libreoffice-3-5 fdo#47670: sw: HTML: fix table border export: It will be available in LibreOffice 3.5.4.