ua-gec icon indicating copy to clipboard operation
ua-gec copied to clipboard

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

Open danmysak opened this issue 2 years ago • 0 comments

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

danmysak avatar Jan 21 '23 08:01 danmysak