Skip to content

getParagraph() does not work on tables #29

@Harbs

Description

@Harbs

There's a (silly?) assumption that one can always get a paragraph from a leaf. One such example is in SplitParagraphOperation, but there appears to be such an assumption in many places.

This does not work when it comes to tables.

The two ways I see of dealing with this are:

  1. Change that assumption in lots of places. (daunting job)
  2. Require TableElement to be a child of ParagraphElement. This would allow returning the parent paragraph of the table.

I do not see any obvious problems with the second approach.

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