Bug 146013 - Output to HTML: (some) styles for tables are wrong
Summary: Output to HTML: (some) styles for tables are wrong
Status: RESOLVED DUPLICATE of bug 46760
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2021-12-02 18:18 UTC by achim
Modified: 2022-11-25 13:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example tables (88.86 KB, application/vnd.oasis.opendocument.text)
2021-12-02 18:18 UTC, achim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description achim 2021-12-02 18:18:11 UTC
Created attachment 176657 [details]
Example tables

The functions "File -> Send -> Create HTML Document" and "File -> Save As ; format: HTML Document" generate tables with wrong styles.
1. additional margin-bottom in all cells
2. missing cell-border if background is set (due to buggy HTML usage)
3. probaly useless br tag for empty cells

For detailed description please see attached .odt.
Comment 1 achim 2021-12-05 13:16:36 UTC
Bug with missing cell-borders also reported in #tdf126883
Comment 2 achim 2021-12-05 17:17:39 UTC
missing cell borders fixed in 7.3.0.0 (05dec21).
But due to the use of the p tag in the table cells, the formatting (padding) is wrong. 7.1.5 looks a bit better ;-)

I'd recommend to use remove the p tag or use a div tag (with proper style) instead. If someone insist on the p tag, there must be a proper style to avoid the default margin and padding.
Comment 3 Dieter 2021-12-20 07:55:54 UTC
I can't confirm it with

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: deea3b7471c3dab0220eca6146c225a2d47681a2
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

(opening html-file in firefox)

Result
1. spacing is correct
2. Cell "Head 2" has borders

Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/current.html ? You can install it alongside the standard version. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 4 achim 2021-12-21 22:12:04 UTC
Version: 7.4.0.0.alpha0+ (x64)

cell spacing is still wrong because each th and td scope contains the p tag
(as I already descibed in #c2)
Comment 5 achim 2021-12-21 22:12:53 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2021-12-22 05:41:21 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2022-11-25 13:15:30 UTC

*** This bug has been marked as a duplicate of bug 46760 ***