Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow files exported by LibreOffice to validate #1

Closed
wants to merge 1 commit into from

Conversation

llewelld
Copy link

An apparent bug in the LibreOffice PPT exporter makes it output files
which technically don't conform to the PPT specification.

When loading a drawing each text paragraph in the drawing has a
TextPFRun structure ("A structure that specifies the paragraph-level
formatting of a run of text"). This starts with a mask, followed by a
sequence of fields. Only unmasked fields are included in the sequence.

According to Section 2.9.45 of the PPT specification version 6, the
following fields must be masked out:

masks.leftMargin
masks.indent
masks.defaultTabSize
masks.tabStops

In spite of this LibreOffice incorrectly includes the leftMargin and
indent fields (flags 0x100 and 0x400).

This patch loosens PPT requirements to allow files with these flags set
to pass validation.

I've also created a Calligra patch to apply this change: https://phabricator.kde.org/D25256

An apparent bug in the LibreOffice PPT exporter makes it output files
which technically don't conform to the PPT specification.

When loading a drawing each text paragraph in the drawing has a
TextPFRun structure ("A structure that specifies the paragraph-level
formatting of a run of text"). This starts with a mask, followed by a
sequence of fields. Only unmasked fields are included in the sequence.

According to Section 2.9.45 of the PPT specification version 6, the
following fields must be masked out:

masks.leftMargin
masks.indent
masks.defaultTabSize
masks.tabStops

In spite of this LibreOffice incorrectly includes the leftMargin and
indent fields (flags 0x100 and 0x400).

This patch loosens PPT requirements to allow files with these flags set
to pass validation.
@tsdgeos
Copy link

tsdgeos commented Nov 11, 2019

Thanks for your contribution 😃

This repository is a mirror of a KDE repository. This means that developers are not looking at pull requests created in GitHub, so I'm closing this pull request (actually a bot is doing it).
Please see https://community.kde.org/Infrastructure/Github_Mirror for details on how to contribute to this and other KDE projects.

@tsdgeos tsdgeos closed this Nov 11, 2019
@llewelld
Copy link
Author

Same patch, now on Phabricator: https://phabricator.kde.org/D25259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants