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

FlowDirection="RightToLeft" Disrupts Text #18120

Open
s97712 opened this issue Feb 5, 2025 · 2 comments
Open

FlowDirection="RightToLeft" Disrupts Text #18120

s97712 opened this issue Feb 5, 2025 · 2 comments

Comments

@s97712
Copy link

s97712 commented Feb 5, 2025

Describe the bug

When using FlowDirection="RightToLeft", text like <image/> are incorrectly transformed into </image> or image />>. It seems to struggle with determining how to transform content properly. Could we consider adding more options to let users control whether and how to apply such transformations?

To Reproduce

Add: <TextBlock Text="<image/>" FlowDirection="RightToLeft" />

Expected behavior

No response

Avalonia version

11.2.3

OS

No response

Additional context

No response

@s97712 s97712 added the bug label Feb 5, 2025
@Gillibald
Copy link
Contributor

This is how Chromium renders the text. Everything works as expected.
Image

@s97712
Copy link
Author

s97712 commented Feb 5, 2025

This is how Chromium renders the text. Everything works as expected. Image

Sorry, please try this again. Or run on Windows native.

 <StackPanel FlowDirection="RightToLeft">
            <TextBlock Text="&lt;image/&gt;" Grid.Column="5" />
        </StackPanel>

@Gillibald Gillibald self-assigned this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants