Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tabstop - Delta contains unexpected byte sequence #5

Open
voodoohoo opened this issue Aug 7, 2020 · 1 comment
Open

Tabstop - Delta contains unexpected byte sequence #5

voodoohoo opened this issue Aug 7, 2020 · 1 comment

Comments

@voodoohoo
Copy link

If Tabstops are defined, e.g. left Tabstop on Position 100, typing a single Tab leads to this delta

[{"attributes":{"tab":"1"},"insert":""},{"attributes":{"line-part":true},"insert":""},{"attributes":{"tabs-cont":"TABS-CONT"},"insert":"\n"}]
All of the insert operations for the attributes tab and line-part contains a byte sequence of EF BB BF

I think that is bug within the tabstop logic. I've noticed that while writing a Delta2Rtf converter which leads to unexpected results when using defined tabstops

@voodoohoo voodoohoo changed the title Tabstop - Delta contains control character Tabstop - Delta contains unexpected byte sequence Aug 7, 2020
@voodoohoo
Copy link
Author

voodoohoo commented Aug 7, 2020

Workaround is to remove all non ASCII Character (beware of special characters like german umlauts) after rte.getValue()

delta = delta.replaceAll("[^\\x00-\\x7F]", "");

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant