Description: Line Numbers and text in DOCX documents created with Microsoft Word 2010 have lower distance when the document is opened in LibreOffice Writer. Steps to Reproduce: 1. Create a new document in Microsoft Word. 2. Type “=lorem(25)” and press Enter. 3. On the Page Layout tab, in the Page Setup group, click Line Numbers. 4. Select Continuous. 5. Save the file as DOCX. 6. Open the same file in LibreOffice Writer. 7. Compare the original file opened in Word and Writer. Actual Results: There is lower distance between the text and the number when the document is opened in LibreOffice Writer. Expected Results: Numbers and text should have the same distance as in the original file when the document is opened in Microsoft Word 2010. Reproducible: Always User Profile Reset: No Additional Info:
Created attachment 146954 [details] Screenshot of the original document side by side in Word and Writer.
Created attachment 146955 [details] Example file from Word
I can confirm that the bug is present in Microsoft Word 2007 Version: 6.0.6.2 Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77 CPU threads: 2; OS: Windows 6.1; UI render: default; Locale: en-US (en_US); Calc: group
(In reply to Durgapriyanka from comment #3) > I can confirm that the bug is present in > > Microsoft Word 2007 > > Version: 6.0.6.2 > Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77 > CPU threads: 2; OS: Windows 6.1; UI render: default; > Locale: en-US (en_US); Calc: group Durgapriyanka, if you can confirm a bug report, you are also allowed to change the status to NEW. => Set status to NEW, because of comment 3
Created attachment 152686 [details] Numbering settings of the original document By default Word uses the value of "Auto" which is in fact ~0.5 cm. This seems to be independent of page size / orientation in my Word 2013. This is imported as 0.0 hence the difference. If there is a non-Auto value set in Word then the import and export works fine.
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/d828429f81e63d3c6beb4574fe3c52b001ea0a5b%5E%21 tdf#121663 DOCX import: fix missing space in line numbering It will be available in 6.4.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.
*** Bug 66541 has been marked as a duplicate of this bug. ***
Created attachment 154218 [details] Example compared in LO Used to be OK in OO and LO 4.0, wrong in 4.2. Looks like a regression. Verified now.
Please back port to 6.3
(In reply to Timur from comment #9) > Please back port to 6.3 Done -> https://gerrit.libreoffice.org/#/c/79053/
László Németh committed a patch related to this issue. It has been pushed to "libreoffice-6-3": https://git.libreoffice.org/core/commit/129d5e09e0bc351bf77762067aa817b02bbb8e2f tdf#121663 DOCX import: fix missing space in line numbering It will be available in 6.3.3. 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.