Bug 154305 - LibreOffice Writer adds empty lines between paragraph and sdt blocks
Summary: LibreOffice Writer adds empty lines between paragraph and sdt blocks
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-21 10:36 UTC by Majd Azzam
Modified: 2023-10-24 11:48 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test File (24.90 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-03-21 10:52 UTC, Majd Azzam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Majd Azzam 2023-03-21 10:36:03 UTC
Description:
In my document, I have a normal paragraph (with one line), followed by an sdt block (with multiple lines).
When I open the document with LibreOffice Writer, I find always few empty lines between the paragraph block and the sdt block.

Steps to Reproduce:
1. create document with one paragraph.
2. create sdt with four lines, directly after the paragraph.
3. save the document, and open it again.

Actual Results:
The paragraph should be followed directly by the sdt block.

Expected Results:
There is three empty lines between the paragraph and the sdt.


Reproducible: Always


User Profile Reset: No

Additional Info:
The software should show the paragraph followed by the sdt, without any empty lines between them.

Please note the problem is not reproducible when I open the document with Microsoft Word.
Comment 1 Majd Azzam 2023-03-21 10:52:51 UTC
Created attachment 186113 [details]
Test File
Comment 2 BogdanB 2023-10-01 13:08:34 UTC
Majd, please let the bug in Unconfirmed status, until someone else can reproduce it, and confirm it.
Comment 3 Buovjaga 2023-10-24 11:48:04 UTC
This is now implemented since 5082d50d24c3fec4487c724a15eb0d54a82ecd0d, I bibisected the implementation in linux-64-24.2 bibisect repo.

Commit subject:
writerfilter: use content controls for text in block SDTs