Bug 36447 - FORMATTING HTML formatting problems with spacing and font size
Summary: FORMATTING HTML formatting problems with spacing and font size
Status: RESOLVED DUPLICATE of bug 115326
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:html
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2011-04-20 18:03 UTC by Dave Yost
Modified: 2023-10-11 10:16 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example source document (18.79 KB, application/vnd.oasis.opendocument.text)
2011-04-20 18:04 UTC, Dave Yost
Details
saved HTML from the example source document (3.81 KB, text/html)
2011-04-20 18:05 UTC, Dave Yost
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Yost 2011-04-20 18:03:58 UTC
Being able to print pages on paper and export as HTML from the same source document is an extremely valuable feature. It should be maintained so that it works well.

See the attached files for various problems with saving as html.
1. too much line spacing in one of the fonts used
2. leading spaces not present in html
3. font sizes apear the same in the odt but not in the html
Comment 1 Dave Yost 2011-04-20 18:04:44 UTC
Created attachment 45897 [details]
Example source document
Comment 2 Dave Yost 2011-04-20 18:05:11 UTC
Created attachment 45898 [details]
saved HTML from the example source document
Comment 3 Björn Michaelsen 2011-12-23 12:06:50 UTC Comment hidden (obsolete)
Comment 4 Florian Reisinger 2012-08-14 14:04:05 UTC Comment hidden (obsolete)
Comment 5 Florian Reisinger 2012-08-14 14:04:58 UTC Comment hidden (obsolete)
Comment 6 Florian Reisinger 2012-08-14 14:09:26 UTC Comment hidden (obsolete)
Comment 7 Florian Reisinger 2012-08-14 14:11:26 UTC Comment hidden (obsolete)
Comment 8 sasha.libreoffice 2012-08-31 09:59:41 UTC
reproduced in 3.6.1 on Fedora 64 bit. Distance between lines in html is still too big
Comment 9 QA Administrators 2015-04-01 14:42:27 UTC Comment hidden (obsolete)
Comment 10 Buovjaga 2015-04-24 16:31:54 UTC
Reproduced.

Win 7 Pro 64-bit Version: 5.0.0.0.alpha1+ (x64)
Build ID: f3375fa07f27bd2ade519af3c07d69040d10eaa9
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-22_23:38:50
Locale: fi_FI
Comment 11 QA Administrators 2016-09-20 09:33:25 UTC Comment hidden (obsolete)
Comment 12 Telesto 2017-05-24 18:19:54 UTC
Repro with 
Version: 5.5.0.0.alpha0+
Build ID: d57e6cd9dcc96112994ca2b14ac45896e86b26e5
CPU threads: 4; OS: Windows 6.19; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-05-18_22:43:07
Locale: nl-NL (nl_NL); Calc: CL
Comment 13 QA Administrators 2018-11-07 04:01:32 UTC Comment hidden (obsolete)
Comment 14 QA Administrators 2020-11-07 04:11:42 UTC Comment hidden (obsolete)
Comment 15 Stéphane Guillou (stragu) 2021-05-28 03:51:48 UTC
reproduced with:

Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: 4a9eef7849a75ba91806886ea9c96d114c8d56f9
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-05-22_06:45:25
Calc: threaded

On top of the three issues described, the border disappears because of duplicated style attributes, but I believe the issue might already be covered by Bug 132739.
Comment 16 QA Administrators 2023-05-29 03:15:09 UTC Comment hidden (obsolete)
Comment 17 Stéphane Guillou (stragu) 2023-07-28 22:09:10 UTC
Save as > HTML still displays the same issues in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 24d0a62bd75b9a895c419aa165da648ab18f134d
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 18 Buovjaga 2023-10-11 10:16:59 UTC
(In reply to Dave Yost from comment #0)
> Being able to print pages on paper and export as HTML from the same source
> document is an extremely valuable feature. It should be maintained so that
> it works well.
> 
> See the attached files for various problems with saving as html.
> 1. too much line spacing in one of the fonts used

This is because of default <p> styles in HTML specification. Writer has its own way of rendering paragraphs. You have to modify the HTML or CSS and define margin-top: 0; for the offending paragraphs.

> 2. leading spaces not present in html

This would be solved by 115326, so closing as duplicate.

> 3. font sizes apear the same in the odt but not in the html

The font size in the code block appears the same in the odt and html.

Arch Linux 64-bit, X11
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1f9cd62b67d679da078c50b4b48295918657a70a
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 11 October 2023

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