Bug 96321 - FORMATTING: in imported doc or docx, rendered underlines lines (top/bottom border) do not appear evenly spaced
Summary: FORMATTING: in imported doc or docx, rendered underlines lines (top/bottom bo...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 48032 (view as bug list)
Depends on:
Blocks: DOC DOCX-Character
  Show dependency treegraph
 
Reported: 2015-12-07 18:13 UTC by Marco Ciampa
Modified: 2021-04-14 13:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
File that shows the problem (8.62 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-12-07 18:13 UTC, Marco Ciampa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Ciampa 2015-12-07 18:13:30 UTC
Created attachment 121116 [details]
File that shows the problem

When importing doc or docx rendering underlines lines these do not appear evenly spaced. It seems related to bug #87805.
If I import a docx file (a high school test) with some evenly spaced underlined lines, these appear not evenly spaced. If I write this file with LibO Writer in doc or docx format, Word renders and prints it correctly. Even if I read it from odt and save it subsequently in doc or docx Words continue to render & print it correctly but Writer not.

Example file attached.
Comment 1 Buovjaga 2015-12-10 09:39:02 UTC
It seems to be because the direct formatting of the line, paragraph line spacing is 1.5.
Maybe unrelated, but different zoom levels show a boldening effect on some lines (it varies).

I tried reproducing from scratch, did several lines and made them have 1.5 line spacing. A docx save made all the lines disappear except the last one.

Win 7 Pro 64-bit, Version: 5.0.3.2 (x64)
Build ID: e5f16313668ac592c1bfb310f4390624e3dbfb75
Locale: fi-FI (fi_FI)
Comment 2 QA Administrators 2018-06-26 02:44:25 UTC Comment hidden (obsolete)
Comment 3 Marco Ciampa 2018-06-26 06:18:12 UTC
The bug is still present in LibO 6.0.5...
Comment 4 QA Administrators 2019-06-27 02:53:03 UTC Comment hidden (obsolete)
Comment 5 Marco Ciampa 2019-06-27 06:01:24 UTC
The bug is still present in LibO 6.2.4.2 ...
Comment 6 Justin L 2021-04-14 11:42:22 UTC
repro 7.2+
The same thing is reproducible by creating a new document. So it is not particularly related to DOC/DOCX, although it does show an interoperability problem.

All of the lines are 1.5 spaced. Every other line is set to show top/bottom borders. The borders in LO follow the character top/bottom, not the spacing top/bottom.  Apparently Word does things the other way.

So this is a layout issue, which would need a compatibility flag to handle some formats in a different way than another.
Comment 7 Justin L 2021-04-14 13:05:36 UTC
*** Bug 48032 has been marked as a duplicate of this bug. ***