Skip to content

Unwanted line wrapping caused by spaces #3846

Description

@zhangtiebing1-cloud

What happened?

The algorithm used for reformatting the entire component is not very friendly to Chinese text. When pressing the space key within a paragraph, it may insert line breaks at inappropriate positions where no line break should occur, resulting in a poor visual appearance.

Steps to reproduce

For example, in any line of the second paragraph, if you first insert a space, and then insert another space at the same X-axis position or further to the left on the next line, a line break will occur at the position of the first space. This behavior is incorrect.

test.docx

SuperDoc version

No response

Browser

None

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions