Bug 163874 - inline headings: add XHTML export
Summary: inline headings: add XHTML export
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 22:04 UTC by László Németh
Modified: 2025-01-04 03:38 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Original sample edited with one new inline heading (8.39 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-01-04 03:38 UTC, Alistair Saywell
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 22:04:25 UTC
Description:
Description:
There is no XHTML 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. Export As XHTML (i.e. using XSLT filter).

Actual Results:
Inline headings of the original documents are in separated paragraphs in XHTML


Expected Results:
Inline headings.


Reproducible: Always


User Profile Reset: No

Additional Info:
See Bug 48459 and 163873.
Comment 1 Commit Notification 2024-11-13 09:41:46 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/984f0e49d35ba87c105310f27d945147a23d1198

tdf#163874 sw inline heading: fix XHTML 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 2 Alistair Saywell 2025-01-04 03:38:30 UTC
Created attachment 198374 [details]
Original sample edited with one new inline heading

Headings are not exported back to .docx after editing.
In the sample document, I added one further definition in Writer and saved the document. When opened in Word, none of the Headings were headings any more, not even Heading 1.
The .docx when opened in Writer still shows the headings

New parallel installation
Version: 25.2.0.1 (X86_64) / LibreOffice Community
Build ID: ddb2a7ea3a8857aae619555f1a8743e430e146c9
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: en-NZ (en_NZ); UI: en-GB
Calc: CL threaded