Skip to content

insert_text insert_textbox and annotation's insert_free_text both hit a space, and the next word goes out of the area and breaks the line, but Chinese has no spaces, which leads to a single space, and then a sentence following it is treated as a word. #3370

@izerui

Description

@izerui

Description of the bug

sample:
世界 人民大团结万岁!

result:
line1: 世界
line2: 人民大团结万岁!

How to reproduce the bug

What is actually expected is:
line1: 世界 人民大
line2: 团结万岁!

PyMuPDF version

1.24.1

Operating system

MacOS

Python version

3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    not a bugnot a bug / user error / unable to reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions