Download it now!
Bug 62422 - Incorrect word spacing and then line wrapping of .docx files with Microsoft font TNR
Summary: Incorrect word spacing and then line wrapping of .docx files with Microsoft f...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2013-03-16 19:44 UTC by brian.bj.parker99
Modified: 2019-09-17 14:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
docx file demonstrating differing word wrap in Word and LO (167.56 KB, application/zip)
2013-03-16 19:44 UTC, brian.bj.parker99
Details
Another word wrap example (130.70 KB, application/zip)
2013-03-27 04:39 UTC, brian.bj.parker99
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brian.bj.parker99 2013-03-16 19:44:48 UTC
Created attachment 76623 [details]
docx file demonstrating differing word wrap in Word and LO

Attached is an example Word document (produced on Mac OSX) demonstrating a bug that produces different line breaks when opened in LibreOffice. Such differing line breaks ruin the overall layout of a shared docuument between Word and LO.

 I have attached the .docx file (lo_bug_page_break7.docx) and pdfs showing the correct output (lo_bug_page_break7_word.pdf)  and LibreOffice output (lo_bug_page_break7_LO.pdf). Note that on opening the Word file in LO, you should select all text then set the font size to 12 (due to a different bug (reported) some fonts are set to size 16 in LO)).

If you show hidden characters and turn on maximum zoom in LO, it appears that the cases of differing word wrap occur when a hidden character extends well beyond the end of the line (whereas Word would wrap in that case). 
Also, the first line is an example where Word will not break a two Word field from EndNote whereas LO will.
The last line is a negative example that displays teh same on Word and LO despite white space appearing to slightly overlap the page margins.

The Word version the file was open on was:
Word 2008 for Mac
Version 12.3.1

and the LbreOffice version was:
Version 4.0.1.2 (Build ID: 84102822e3d61eb989ddd325abf1ac077904985)
TinderBox: MacOSX TDF Release, Branch:libreoffice-4-0, Time: 2013-02-27_17:15:43
Comment 1 brian.bj.parker99 2013-03-27 04:39:21 UTC
Created attachment 77083 [details]
Another word wrap example

Another example of different word-wrapping between Word and LO. This example shows that hyphens in the text can lead to different word-wrapping. 
 
lo_word_wordwrap_bug2.docx  is original Word document; 
lo_word_wordwrap_bug2_word.pdf shows the output of Word;
lo_word_wordwrap_bug2_lo.pdf shows the output of LO.

Word and LO versions as in the previous example.
Comment 2 brian.bj.parker99 2013-03-28 19:35:30 UTC
Some additional information- even if I first save the file as a doc file in Word and then load the doc file with LO the word wrap differences are still there, so this appears to be a bug in the underlying word wrapping algorithm.
Comment 3 Joel Madero 2013-04-09 05:00:57 UTC Comment hidden (obsolete)
Comment 4 brian.bj.parker99 2015-03-24 11:33:52 UTC
In LO 4.4.1.2 on OSX there has been no change- the examples show the same bug.
Comment 5 Robinson Tryon (qubit) 2015-12-09 18:44:55 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2018-06-16 02:46:00 UTC Comment hidden (obsolete)
Comment 7 Timur 2019-09-17 14:32:20 UTC
Repro 6.4+. Many bugs on this. Related to Microsoft font rendering, TNR here.