Bug 156189 - FORMATTING: line spacing of text (blank lines) in pptx files from Powerpoint
Summary: FORMATTING: line spacing of text (blank lines) in pptx files from Powerpoint
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.4.7.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-07 13:08 UTC by Brian Candler
Modified: 2023-09-05 16:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file from Powerpoint demonstrating the problem (58.98 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2023-07-07 13:08 UTC, Brian Candler
Details
Test pptx rendered to PDF by Powerpoint (68.96 KB, application/pdf)
2023-07-07 13:09 UTC, Brian Candler
Details
Test pptx rendered to PDF by Libreoffice (77.35 KB, application/pdf)
2023-07-07 13:09 UTC, Brian Candler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Candler 2023-07-07 13:08:48 UTC
Created attachment 188245 [details]
Test file from Powerpoint demonstrating the problem

See the attached sample file (Test.pptx) created in Microsoft Powerpoint, last opened in version 16.73

- it renders fine in Office (Test-powerpoint.pdf)
- the line spacing is wrong in Libreoffice (Test-libreoffice.pdf), causing it to overlap with floating text boxes

The fonts used are "Arial" and "Courier New" which I would expect to render correctly.

The PDFs here were made under macOS, but we also see the same behaviour with Linux (we have a server which uses Libreoffice CLI to convert .pptx to .pdf offline)
Comment 1 Brian Candler 2023-07-07 13:09:27 UTC
Created attachment 188246 [details]
Test pptx rendered to PDF by Powerpoint
Comment 2 Brian Candler 2023-07-07 13:09:45 UTC
Created attachment 188247 [details]
Test pptx rendered to PDF by Libreoffice
Comment 3 Brian Candler 2023-07-07 13:34:32 UTC
I think I have an idea what's going on.

When you have a list with nested bullets, and there are blank entries at level 2 or below:

* Foo
   * Bar


   * Baz
* Qux

In Powerpoint, the blank lines between "Bar" and "Baz" are treated as level 2 (and spaced accordingly), whilst in Libreoffice they are treated as level 1, and hence have larger spacing.

Workaround: for each blank line, enter a single space (which makes the bullet appear), and then press the "bullets" button to make it disappear again. This leaves:

* Foo
   * Bar
   (invisible level 2 bullet)
   (invisible level 2 bullet)
   * Baz
* Qux

and the spacing is now more or less the same between LO and Powerpoint
Comment 4 Buovjaga 2023-09-05 16:22:08 UTC
I repro with 7.4, but with 7.5 it already works fine. Tested with Linux bibisect repositories.