Skip to content

First index of hard line break #38

@HueHue44

Description

@HueHue44

I want to segment runs based on direction change, script change and hard line breaks. But I have a problem when it comes to the segmentation of line breaks. The reported break.Position points to the character after the characters that caused the line break. For example, the string A\r\nB will report the first hard line break at index 3, which is the 'B', but I want the segmentation to only include 'A' in this case. How should one know where the hard line break started?

This may be my lack of understanding how this works. Really appreciate the work on this library!

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