Bug 91178 - FILEOPEN: docx table export loses inline table spacing (b/c MS formats can't define top/bottom margin for inline tables)
Summary: FILEOPEN: docx table export loses inline table spacing (b/c MS formats can't ...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: lowest normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
: 148767 (view as bug list)
Depends on:
Blocks: DOCX-Limitations
  Show dependency treegraph
 
Reported: 2015-05-08 22:32 UTC by tom.hilinski
Modified: 2023-08-18 16:15 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Contains original ODT, exported DOCX, and PNG screen snippet. (117.86 KB, application/zip)
2015-05-08 22:32 UTC, tom.hilinski
Details
The original file and its docx version in master (91.20 KB, image/png)
2023-04-28 10:16 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tom.hilinski 2015-05-08 22:32:33 UTC
Created attachment 115462 [details]
Contains original ODT, exported DOCX, and PNG screen snippet.

Create a table in an ODT file. 
Add spacing around table (in my example, top and bottom == 0.08"). 
Export to 2013 DOCX.
Open DOCX in LO. Table properties have spacing == zero.
Comment 1 tom.hilinski 2015-05-08 22:43:06 UTC
Also, DOCX --> DOCX forgets table spacing.
DOCX --> ODT remembers spacing.
Comment 2 A (Andy) 2015-05-09 06:48:17 UTC
Reproducible with LO 4.4.2.2, Win 8.1

It works with odt, but it doesn't work with doc and docx.
Comment 3 Xisco Faulí 2017-03-12 18:50:24 UTC
Reproduced in

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 4 QA Administrators 2018-03-13 03:37:08 UTC Comment hidden (obsolete)
Comment 5 Svatopluk Vít 2021-02-26 13:29:36 UTC
Bug is still present as described and also with new file created from scratch.

Version: 7.1.1.1 / LibreOffice Community
Build ID: 575c5867c4cc13d7ae78f9ce39a54a52ed38c769
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 6 Buovjaga 2023-01-09 10:51:58 UTC
*** Bug 148767 has been marked as a duplicate of this bug. ***
Comment 7 Gabor Kelemen (allotropia) 2023-04-28 10:16:39 UTC
Created attachment 186978 [details]
The original file and its docx version in master

Still a problem in

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9a555d79b3b00793edf1d51a8a7c76b723cc436d
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

Such settings could be exported now(?) by putting the whole table into a splitting textframe with these spacing values at save time, and it would roundtrip reasonably well.
Comment 8 Justin L 2023-08-18 16:15:23 UTC
While Gabor's comment 7 may be correct, I'm quite sure this report should just be closed as NOTABUG.

Isn't this a limitation of the MS formats? I mean, what is the DOCX setting that would do such a thing? In the UI I don't notice anything that allows a top and bottom margin for an inline table.

Floating a table simply to preserve top and bottom margins is a very heavy price to pay - it will cause many more problems than what it is worth.