Bug 73056

Summary: FILEOPEN: Non-global Table Row Margins of MS WORD 97-2003 DOC are only implemented for 1st Cell of Row.
Product: LibreOffice Reporter: Jeroen Hennekes <jeroen.hennekes>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: minor    
Priority: medium CC: jeroen.hennekes, todventtu
Version: 3.5.0 release   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: MS WORD 97-2003 DOC with 3-column table
MSWORD 97-2003 DOC with 3-column TABLE
MSWORD FILEOPEN MSWORD DOC TABLE (IMAGE/PNG)
LIBREOFFICE WRITER FILEOPEN MSWORD DOC TABLE (IMAGE/PNG)

Description Jeroen Hennekes 2013-12-27 02:40:09 UTC
Created attachment 91207 [details]
MS WORD 97-2003 DOC with 3-column table

Windows XP - MS Office 2007
Subject: 
MS WORD 97-2003 DOC has a 3-column table with global cell margins, configured in Table Properties->Table tab->Options. Some rows of this table have non-global cell margins, configured in Table->Cell->Options->uncheck "Equal to whole table". 

Bug: 
LibreOffice only copies the first cell margins of the "non-global" rows. The 2nd and 3d cell get the global cell margins instead of the (smaller) non-global cell margins. 

Example DOC: 
Table with global cell margins above, below, left, right = 0,15 0,45 0,15 0,15 cm.
Table header = 0,1 0,1 0,15 0,15 cm.
Other single line rows are 0,15 0,15 0,15 0,15 cm.
In LibreOffice all rows show as 0,15 0,45 0,15 0,15 cm, because the margins of the 2nd and 3d cells of the non-global rows are not correctly implemented by LibreOffice. (Select the whole cell to check cell 1, 2, 3)
  
Open attached DOC with LibreOffice Writer and examine table starting at page 2.
Comment 1 Jeroen Hennekes 2013-12-27 11:48:08 UTC
In my description:
Replace "above margin" by "TOP MARGIN"
Replace "below margin" by "BOTTOM MARGIN"
 
In LibreOffice margins are inspected by following:
1. Select a table cell (not only the cell text, but the whole cell)
2. Choose Table... (Menu or Rightmouse click)
3. Choose Table Properties
4. Choose Borders tab: Spacing to contents - Left Right Top Bottom
 
When you select the table header row in the provided example in LibreOffice Writer, you will find Spacing to contents = 0,00 0,00 0,00 0,00 cm, because the 3 Cells have different TOP/BOTTOM margins:
1st cell is correct: 0,15 0,15 0,10 0,10 cm (equals MS WORD margins)
2nd and 3d cell are incorrect: 0,15 0,15 0,15 0,45 cm (MS WORD cell margins 0,15 0,15 0,10 0,10 are not imported. Standard table cell margins get used instead)
Comment 2 Jeroen Hennekes 2014-01-25 00:21:41 UTC
This bug is about conversion of MS WORD DOC to LibreOffice ODT.

I will not even start with MS WORD DOCX to LibreOffice ODT. It is a nightmare!!!
Therefore I always save my co-workers DOCX to DOC, before I open with LibreOffice.
Comment 3 Jeroen Hennekes 2014-07-05 20:29:08 UTC
Bug still existing in version 4.2.5.2
Comment 4 Beluga 2014-11-01 21:02:18 UTC
I confirm -> NEW.

Win 7 64-bit Version: 4.4.0.0.alpha1+
Build ID: 1baad070d8c2a38581cf33d803c5043f1974647f
TinderBox: Win-x86@39, Branch:master, Time: 2014-11-01_00:15:06
Comment 5 Beluga 2015-01-07 17:44:03 UTC
Lowered version number after reproducing with:

Ubuntu 14.10 64-bit
LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 6 Jeroen Hennekes 2015-01-08 01:21:18 UTC
Created attachment 111936 [details]
MSWORD 97-2003 DOC with 3-column TABLE

More concise DOC, followed by 2 PNG images to view the differences online between FILEOPEN MSWORD and FILEOPEN LibreOffice Writer.
Comment 7 Jeroen Hennekes 2015-01-08 01:31:21 UTC
Created attachment 111937 [details]
MSWORD FILEOPEN MSWORD DOC TABLE (IMAGE/PNG)

FILEOPEN MSWORD DOC TABLE by MSWORD (IMAGE/PNG)
Comment 8 Jeroen Hennekes 2015-01-08 01:36:48 UTC
Created attachment 111938 [details]
LIBREOFFICE WRITER FILEOPEN MSWORD DOC TABLE (IMAGE/PNG)

FILEOPEN MSWORD DOC TABLE by LibreOffice Writer (IMAGE/PNG)
Comment 9 Jeroen Hennekes 2015-01-08 02:05:03 UTC
LIBREOFFICE WRITER FILEOPEN MSWORD DOC TABLE (IMAGE/PNG)

The mentioned incorrect 2nd and 3d cell margins of the non-global 1st and 3d table row are in fact the table's global margins (as in the global 2nd row).
Non-global 2nd and 3d cell margins don't get imported by LibreOffice Writer.
Comment 10 Jeroen Hennekes 2015-01-08 02:17:11 UTC
(In reply to Beluga from comment #4)
> I confirm -> NEW.
> 
> Win 7 64-bit Version: 4.4.0.0.alpha1+
> Build ID: 1baad070d8c2a38581cf33d803c5043f1974647f
> TinderBox: Win-x86@39, Branch:master, Time: 2014-11-01_00:15:06

Thanks BELUGA!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.