Description: Space between paragraphs of the same style is altered Steps to Reproduce: Steps to reproduce: 1. Create some paragraphs in an empty document 2. Set a big space before paragraph in a style 3. Set the “Don’t add space between paragraphs of the same style” 4. Reset the “Don’t add space between paragraphs of the same style” for a selected paragraph with direct paragraph formatting 5. Save the document as docx 6. Open the saved document with Microsoft Word Actual Results: The space between paragraphs is the big value both before and after the selected paragraph in LibreOffice Writer view. The space between paragraphs is the big value only before the selected paragraph in Microsoft Word’s view. Expected Results: The space between paragraphs after the selected paragraph are same in LibreOffice Writer and Microsoft Word. Reproducible: Always User Profile Reset: No Additional Info: Remark: The “Don’t add space between paragraphs of the same style” meanings are different in Writer and in Word. It means space before AND after the paragraph in Writer, but it means ONLY before the paragraph in Word. Therefore you can generate the document even in MS Word, the actual results will be the same.
Created attachment 152150 [details] Example file with paragraph in same style
Created attachment 152151 [details] Screenshot about LibreOffice Writer
Created attachment 152152 [details] Ccreenshot about Microsoft Word
I confirm it with attachment from comment 1 in comparison between MS Word 2016 and Version: 6.4.0.0.alpha0+ (x64) Build ID: b170256fb6ebaf774b02b89835b19d9f3a1afb89 CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; TinderBox: Win-x86_64@42, Branch:master, Time: 2019-06-07_03:30:35 Locale: de-DE (de_DE); UI-Language: en-US Calc: threaded
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e318d5d8146d18e2c76e23f2e3c39527f2af9f36 tdf#125893 DOCX import: fix "half" contextual paragraph spacing It will be available in 7.1.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.
Note: I've modified this issue only for the visible import problem. While ODT export keeps the recent fix, the DOCX export still lost the non-contextual paragraph setting, if the contextual spacing comes from the paragraph style. I suggest to file a new issue for that different bug.
László Németh committed a patch related to this issue. It has been pushed to "libreoffice-7-0": https://git.libreoffice.org/core/commit/461634632d796fc719e941d925021ae48a210e59 tdf#125893 DOCX import: fix "half" contextual paragraph spacing It will be available in 7.0.0.1. 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.