Bug 163873 - inline headings: add text-based HTML export instead of a low-resolution image
Summary: inline headings: add text-based HTML export instead of a low-resolution image
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:25.2.0
Keywords:
Depends on:
Blocks: Writer-Styles-Heading
  Show dependency treegraph
 
Reported: 2024-11-12 21:58 UTC by László Németh
Modified: 2024-11-13 12:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of the original export (lo-res pictures, as inline headings) (31.46 KB, image/png)
2024-11-13 12:24 UTC, László Németh
Details
"Apple", the lo-res gif as inline heading (947 bytes, image/gif)
2024-11-13 12:25 UTC, László Németh
Details
The original HTML document, using the previous gif (3.77 KB, text/html)
2024-11-13 12:26 UTC, László Németh
Details
The HTML export after the fix, containing h2 heading element with display:inline CSS style setting (4.13 KB, text/html)
2024-11-13 12:27 UTC, László Németh
Details
screenshot of the fixed HTML export (inline headings are not images any more) (28.41 KB, image/png)
2024-11-13 12:28 UTC, László Németh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description László Németh 2024-11-12 21:58:32 UTC
Description:
There is no HTML export support of inline headings implemented in Bug 131728.

Steps to Reproduce:
1. Open https://bugs.documentfoundation.org/attachment.cgi?id=162196 (test document of Bug 131728).
2. Save As HTML. 

Actual Results:
Inline headings of the orignal documents are in separated paragraphs in HTML.

Expected Results:
Inline headings.


Reproducible: Always


User Profile Reset: No

Additional Info:
See also Bug 48459.
Comment 1 László Németh 2024-11-12 22:19:54 UTC
Correction: Actual Result is the conversion of the inline heading to a low-resolution image using the user interface.
Comment 2 Commit Notification 2024-11-13 12:08:11 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/bcee366d82392b02745b0070a312624e7baa29d3

tdf#163873 sw inline heading: use HTML text, not lo-res bitmap export

It will be available in 25.2.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 3 László Németh 2024-11-13 12:10:36 UTC
Commit description:

tdf#163873 sw inline heading: use HTML text, not lo-res bitmap export

Text frames formatted with Inline Heading style and anchored as
characters were converted to unacceptably low resolution images in
the HTML export. Now the HTML export contains normal h1–h6 elements
with display:inline; CSS setting to get text-based/searchable inline
headings, fixing also the rendering quality.
Comment 4 László Németh 2024-11-13 12:24:32 UTC
Created attachment 197590 [details]
screenshot of the original export (lo-res pictures, as inline headings)
Comment 5 László Németh 2024-11-13 12:25:54 UTC
Created attachment 197591 [details]
"Apple", the lo-res gif as inline heading
Comment 6 László Németh 2024-11-13 12:26:46 UTC
Created attachment 197592 [details]
The original HTML document, using the previous gif
Comment 7 László Németh 2024-11-13 12:27:41 UTC
Created attachment 197593 [details]
The HTML export after the fix, containing h2 heading element with display:inline CSS style setting
Comment 8 László Németh 2024-11-13 12:28:38 UTC
Created attachment 197594 [details]
screenshot of the fixed HTML export (inline headings are not images any more)