Skip to content

AnnotatedText: Erroneous processing of texts containing the \n literal sequence #28

Open
@danmysak

Description

@danmysak

The issue can probably best be demonstrated with an example:

from ua_gec import AnnotatedText

text = AnnotatedText(r'\n{=>_}')
print(len(text.get_original_text()))  # output: 1
print(text.get_annotations()[0].start)  # output: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions