Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Reset bidi levels of trailing whitespace after text wrapping (According to TR9 guidelines) #17924

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dme-compunet
Copy link
Contributor

@dme-compunet dme-compunet commented Jan 8, 2025

What does the pull request do?

In some situations it is necessary to reset the levels of trailing whitespace to the paragraph embedding level after text wrapping, this PR does this according to TR9 guidelines.

https://www.unicode.org/reports/tr9/#L1

What is the current behavior?

Currently it does not work according to TR9, and sometimes white spaces jump to the beginning of the text.
before

What is the updated/expected behavior with this PR?

Alignment with TR9 guidelines
after

How was the solution implemented (if it's not obvious)?

Checklist

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.3.999-cibuild0054145-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

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

Successfully merging this pull request may close these issues.

2 participants