Skip to content

autoPage duplicates text when text array is used #1139

@mikemeerschaert

Description

@mikemeerschaert

Category

  • Bug

Version

Please specify what version of the library you are using: [ 3.10.0 ]

Please specify what version(s) of PowerPoint you are targeting: [Office 2010]

Please specify what web browser you are using: [node.js]

Expected / Desired Behavior / Question

The text should be formatted correctly as it is passed in.

Observed Behavior

The text is duplicated in a table cell when autoPage: true is used and a text array is supplied

Steps to Reproduce

Create a table with the following input to observe the issue.

slide.addTable(
  [
    [
      {
        text: "column 1 header",
        options: { bold: true },
      },
      { text: "column 2 header", options: { bold: true } },
    ],
    [
      {
        text: [
          { text: "this will be duplicated" },
          { text: "1", options: { superscript: true } },
        ],
      },
      { text: "column 2" },
    ],
  ],
  { autoPage: true }
)

Or check out my example repo here

Here is an example screen shot to demonstrate what I'm seeing:
Screenshot 2022-08-01 115200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions