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)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
: 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-07-19 13:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:

File that shows the problem (8.62 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-12-07 18:13 UTC, Marco Ciampa
The example file in Word and current Writer (65.72 KB, image/png)
2021-07-19 13:38 UTC, NISZ LibreOffice Team

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: (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 ...
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. ***
Comment 8 NISZ LibreOffice Team 2021-07-19 13:38:50 UTC
Created attachment 173674 [details]
The example file in Word and current Writer

Still a problem in:

Version: (x64) / LibreOffice Community
Build ID: da13b76e07231131cb951868a314ee6f51c0f254
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL