Bug 146637 - Table with empty cells has smaller dimensions in Linux (Debian) for .docx with Microsoft fonts
Summary: Table with empty cells has smaller dimensions in Linux (Debian) for .docx wit...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-07 11:17 UTC by Ed Oswald Go
Modified: 2022-01-12 03:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice Writer Mac compared to Linux (379.70 KB, image/png)
2022-01-07 11:19 UTC, Ed Oswald Go
Details
Word Document for replication (16.22 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-01-08 07:58 UTC, Ed Oswald Go
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Oswald Go 2022-01-07 11:17:57 UTC
Description:
When opening a .docx file with a table having empty cells, the contents below move up a bit because the height of the table is shorter when viewed in Linux version of LibreOffice Writer.

The issue is not replicable when using the same version of LibreOffice in Mac OS. Please see the replication steps and the results below.



Steps to Reproduce:
1. Create a .docx file using MS Word with the following contents

Content:
Hello
<new line>
Table (8 rows with 10 columns and cells are all empty)
<new line until the 2nd to the last line>
This document is in portrait orientation
<next page>
Hello

2. Open the .docx file in LibreOffice Writer (Linux)

Actual Results:
You'll noticed that the Hello from the 2nd page will be displayed as part of the first page.

Hello
<new line>
Table (8 rows with 10 columns and cells are all empty) <- Height is smaller
<new line until the 2nd to the last line>
This document is in portrait orientation
Hello
<next page>

Expected Results:
Hello
<new line>
Table (8 rows with 10 columns and cells are all empty)
<new line until the 2nd to the last line>
This document is in portrait orientation
<next page>
Hello


Reproducible: Always


User Profile Reset: No



Additional Info:
Issue is not replicable in LibreOffice Writer in Mac OS.
Comment 1 Ed Oswald Go 2022-01-07 11:19:29 UTC
Created attachment 177371 [details]
LibreOffice Writer Mac compared to Linux
Comment 2 Telesto 2022-01-08 06:08:52 UTC
Would you mind to attach the described word doc? Not everybody uses MSO around here. More important QA has limited resources: it's faster for testing. 
Writing out how the file being created is surely helpful, don't get me wrong. However for initial confirmation a lot of work
Comment 3 Ed Oswald Go 2022-01-08 07:58:26 UTC
Created attachment 177387 [details]
Word Document for replication
Comment 4 Ed Oswald Go 2022-01-08 07:59:30 UTC
(In reply to Telesto from comment #2)
> Would you mind to attach the described word doc? Not everybody uses MSO
> around here. More important QA has limited resources: it's faster for
> testing. 
> Writing out how the file being created is surely helpful, don't get me
> wrong. However for initial confirmation a lot of work

I would like to apologize for failing to attach the file yesterday. @Telesto, you may use the attached file for replicating.

Thank you very much.
Comment 5 Timur 2022-01-11 14:17:44 UTC
This document is created with Calibri font. It's MS proprietary. 
Linux is replacing that font with some other (seen with font name italic), so file is not exactly the same in Linux if created top-bottom with paragraphs like this one (instead of page break). 
Besides, there are other bugs with "Microsoft fonts" problem, I guess you didn't search before submitting. 

In my case, I tested in Ubuntu and with any LO file is proper. Interestingly that in MSO that I have in Ubuntu, file looks wrong as reported. I don't have Calibri, so not sure how it looks OK, I have ttf-mscorefonts-installer but those are other fonts.

So, unless you have an idea how to solve that, this report can only be closed.
Comment 6 Ed Oswald Go 2022-01-12 03:31:38 UTC
(In reply to Timur from comment #5)
> This document is created with Calibri font. It's MS proprietary. 
> Linux is replacing that font with some other (seen with font name italic),
> so file is not exactly the same in Linux if created top-bottom with
> paragraphs like this one (instead of page break). 
> Besides, there are other bugs with "Microsoft fonts" problem, I guess you
> didn't search before submitting. 
> 
> In my case, I tested in Ubuntu and with any LO file is proper. Interestingly
> that in MSO that I have in Ubuntu, file looks wrong as reported. I don't
> have Calibri, so not sure how it looks OK, I have ttf-mscorefonts-installer
> but those are other fonts.
> 
> So, unless you have an idea how to solve that, this report can only be
> closed.

Thank you very much for this, Timur! This is to confirm that when I tried to use a smaller font like Arial, same layout has been achieved.

Yes, "ttf-mscorefonts-installer" does not include Calibri. I found a thread here (https://askubuntu.com/questions/884041/libreoffice-calibri-font-availible-when-opening-a-doc-but-not-in-dropdown) on how to have Calibri alternative font in Linux.

I'm closing this ticket now. Thanks again for the help!