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

Fix misdetection of text direction due to neutral characters #56

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

arrshad
Copy link
Contributor

@arrshad arrshad commented Aug 3, 2024

Previously, when a line started with a neutral character (such as a space or quotation mark), the text direction was incorrectly detected as left-to-right (LTR), regardless of whether the text was actually right-to-left (RTL). This led to incorrect rendering of messages, particularly for languages that use RTL text direction.

Text direction was incorrectly detected as LTR when line started with neutral characters, resulting in improper rendering of RTL text:

Quotly-old

Text direction is now correctly detected based on the actual text content, leading to proper rendering of RTL text even when preceded by neutral characters:

Quotly-new

@LyoSU LyoSU merged commit 1f92b60 into LyoSU:master Aug 3, 2024
1 check passed
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