Bug 169662 - FILESAVE DOCX Table's spacing below is lost when saving
Summary: FILESAVE DOCX Table's spacing below is lost when saving
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks:
 
Reported: 2025-11-24 11:27 UTC by NarayanAras
Modified: 2025-12-13 16:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample file to try and change the bottom margin of the table (7.91 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-11-24 11:28 UTC, NarayanAras
Details
Sample file with a bottom margin of 1 cm (7.91 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-11-24 22:56 UTC, m_a_riosv
Details
How to set bottom margin (60.52 KB, image/png)
2025-11-25 09:01 UTC, NarayanAras
Details
Result of new bottom margin (15.27 KB, image/png)
2025-11-25 09:01 UTC, NarayanAras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NarayanAras 2025-11-24 11:27:00 UTC
Description:
Table formatting is lost when we save and close a file in Writer.


Steps to Reproduce:
1. Create a docx file with a table
2. Set the bottom margin to some value (say .4")
3. Save and close the file
4. Re-open the file. .

Actual Results:
The bottom margin is lost (reset to default value)

Expected Results:
The value that we set should be retained. 


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 8; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 NarayanAras 2025-11-24 11:28:13 UTC
Created attachment 204253 [details]
Sample file to try and change the bottom margin of the table
Comment 2 m_a_riosv 2025-11-24 22:56:15 UTC
Created attachment 204265 [details]
Sample file with a bottom margin of 1 cm

How do you set the bottom margin?

Works for me.

Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: threaded
Comment 3 NarayanAras 2025-11-25 09:00:37 UTC
My method:

1. Click anywhere in the table.
2. Select "Properties" from the "Tables" toolbar (at the bottom of the screen)
3. In the Table tab, set the value in Below to 0.4. Press OK. (screenshot-1)
 
   The space between the table and the following text increases. (sccreenshot-2)
4. Save the file.
5. Re-open the file.
   The gap between the table and the subsequent text has disappeared.
Comment 4 NarayanAras 2025-11-25 09:01:10 UTC
Created attachment 204270 [details]
How to set bottom margin
Comment 5 NarayanAras 2025-11-25 09:01:46 UTC
Created attachment 204271 [details]
Result of new bottom margin
Comment 6 NarayanAras 2025-11-25 09:04:12 UTC
Your sample shows you have increased the margin in the cells.

My bug is about the spacing between the bottom of the table and subsequent text.
Comment 7 Krithika Yetchina 2025-12-10 04:25:45 UTC
Hey NarayanAras, I'm not able to reproduce this in
Version: 25.8.3.2 (AARCH64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 11; OS: macOS 15.6.1; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

My values for the bottom spacing in table properties are saved after re-opening the file.

In case anyone else wants to try reproducing, ensure that you are changing the spacing in Table Properties, not the entire page margin.
Comment 8 Buovjaga 2025-12-13 14:59:15 UTC
Repro per comment 3 and comment 4 on Win and Linux. Already in oldest of linux-43all repo.

Saving to ODT works. Saving from that ODT to DOCX causes the spacing to be lost.

Justin: seeing your work in bug 117297 and notes in bug 168042 and elsewhere, maybe you have an idea about this.
Comment 9 Justin L 2025-12-13 15:35:41 UTC
NOTABUG AFAICS. Show me in MS Word how you can add spacing below a table, and then I might acknowledge that this is a bug.

I just looked at Word 2024's table properties, and didn't see anything that indicates that above or below spacing can be added to the table.

Hmm - OK, if you set the table to being a floating monstrosity (i.e. text wrapping:around), then you can have Positioning margins. (Good floating table support is new in LO.)

So I guess it would be possible to emulate this - although nothing is worth creating the disaster that a floating table is.
Comment 10 Buovjaga 2025-12-13 16:03:38 UTC
Thanks.