Created attachment 143915 [details]
Example document from Word
If we insert a table in Microsoft Word and add some paragraphs into the table with text and modify the style of the paragraph from default to Heading 2, and set the below spacing 18 pt, LibreOffice will not consider it. Even if the setting of the spacing is correct in the style.
Steps to reproduce:
1. Create a new document with Microsoft Word 2010/2013/2016
2. Insert a table with 1 cell.
3. Fill the table with some random text and empty paragraphs.
4. Select the full text and modify the style from “Normal” to “Heading 2”
5. Modify the “below paragraph” of the “Heading 2“ style from 0 pt to 18 pt.
6. Save the style and then save the document as *.docx
7. Open the file in LibreOffice Writer
The “below paragraph” of the “Heading 2“ style is correct but the paragraphs appears with wrong (still 0) spacing. The same problem appears if we export the file with LibreOffice Writer and reload it or open the exported file with Microsoft Word.
The paragraph spacing style should work even if we use them in a table.
Build ID: 480428e0e95453ff6abbc8f90255d3f00e4f0b7b
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: hu-HU (hu_HU.UTF-8); Calc: group
Created attachment 143916 [details]
Screenshot of the file in Word
Created attachment 143917 [details]
Screenshot of the file in LO
Created attachment 143918 [details]
The Heading 2 styles settings in a current master build
I also noticed that in the original file removing direct formatting from the paragraphs solves the problem, so I'm not sure what is going on here.
Confirm with Version 18.104.22.168.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a) and Version: 22.214.171.124.alpha0+
Build ID: 53eda574a61396b6765cd1cb0ac9804c754ac4c1
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3;
This is likely due to the table styles, which need a ton of work.
<w:style w:type="table" w:styleId="Rcsostblzat">
<w:name w:val="Table Grid"/>
<w:spacing w:after="0" w:line="240" w:lineRule="auto"/>