Skip to content

[BUG] Auto-paging sometimes produces "needs repair" errors. #1380

@gitbrent

Description

@gitbrent

Issue Category

  • Enhancement
  • Bug
  • Question
  • Documentation gap/issue

Product Versions

  • Please specify what version of the library you are using......: [ 3.12.0 ]
  • Please specify what version(s) of PowerPoint you are targeting: [ M365 ]
  • Please specify what web browser you are using.................: [ All ]

Observed Behavior

In some cases when tables are auto-paged they cause the "needs repair" message upon opening.

Steps to Reproduce

The causes can vary from the use of autoPageLineWeight values to the content itself. It's very difficult to reproduce and equally difficult to work around.

Whats the Cause

During paging some cell contents can end up blank producing the following table cell content:

<a:tc>
  <a:txBody>
    <a:bodyPr/>
    <a:lstStyle/>
  </a:txBody>
</a:tc>

Which is invalid OOXML - the txBody tag requires paragraph content.

The fix will be adding <a:p><a:endParaRPr/></a:p> after lstStyle in cases where it is absent.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions