Skip to content

[Bug] Paragraph borders not rendered correctly on import #5767

@ShipIM

Description

@ShipIM

Before you submit this issue, have you checked the following

  • Is this really a problem?
  • I have searched the Github Issues for similar issues, but did not find anything.

Affected packages and versions

latest

Reproduction link

Import a document containing a paragraph with the following JSON:

"paragraphStyle": {
    "borderBetween": { "color": { "rgb": "auto" }, "width": 1, "dashStyle": 1, "padding": 1 },
    "borderTop": { "color": { "rgb": "auto" }, "width": 1, "dashStyle": 1, "padding": 1 },
    "borderBottom": { "color": { "rgb": "auto" }, "width": 1, "dashStyle": 1, "padding": 1 },
    "borderLeft": { "color": { "rgb": "auto" }, "width": 1, "dashStyle": 1, "padding": 1 },
    "borderRight": { "color": { "rgb": "auto" }, "width": 1, "dashStyle": 1, "padding": 1 },
  }

Expected behavior

All paragraph borders should be rendered according to the JSON, and paragraph indentation should be respected.

Word example:
Image

Actual behavior

Only the bottom border is displayed. Indentation is ignored, so the left border does not respect indentStart. If the paragraph is the last in the document, no border may be displayed at all.

Actual output:
Image

System information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions