Bug 160017 - HTML export: a paragraph having character border and color settings explicitly set create HTML tags closing out of order
Summary: HTML export: a paragraph having character border and color settings explicitl...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:24.8.0 target:24.2.2
Keywords: filter:html
: 76021 (view as bug list)
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2024-03-04 06:16 UTC by Mike Kaganski
Modified: 2024-08-08 14:46 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A paragraph defining character border (none) and color (black) explicitly (800 bytes, application/vnd.oasis.opendocument.text)
2024-03-04 06:16 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2024-03-04 06:16:44 UTC
Created attachment 192928 [details]
A paragraph defining character border (none) and color (black) explicitly

Open the attached sample document, and export as HTML.

The resulting HTML has closing tags out of order, like this:

<span style="display: inline-block; border: none; padding: 0pt"><font color="#000000">foo</span></font>
Comment 1 Commit Notification 2024-03-04 12:26:31 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/6d797c83d9fb891b783de39646b42d34a895c81e

tdf160017: make sure to emit the closing tags in correct order

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2024-03-07 11:02:36 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/6ebe0eceb1ae4a3e544c733be37e5f02c5f46e80

tdf160017: make sure to emit the closing tags in correct order

It will be available in 24.2.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Stéphane Guillou (stragu) 2024-05-20 11:11:22 UTC
*** Bug 76021 has been marked as a duplicate of this bug. ***
Comment 4 Stéphane Guillou (stragu) 2024-05-20 11:14:49 UTC
Verified in:

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Thanks Mike!