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

Xaml Escape codes inside of attributes dont get ignored #517

Open
TheExiledCat opened this issue Dec 31, 2024 · 1 comment
Open

Xaml Escape codes inside of attributes dont get ignored #517

TheExiledCat opened this issue Dec 31, 2024 · 1 comment
Labels

Comments

@TheExiledCat
Copy link

Bug is quite simple:
using linux mint and avalonia i have a style tag looking like this:

    <Style Selector="SplitView.Pane > is(Control)">
      <Setter Property="HorizontalAlignment" Value="Stretch" />
    </Style>

on format (because of the > sign):

  <Style Selector="SplitView.Pane &gt; is(Control)">
      <Setter Property="HorizontalAlignment" Value="Stretch" />
  </Style>

note the &gt escape code getting added, because of this my entire script cant be formatted (and i have format on save enabled) because it breaks the expected values for that attribute.

@TheExiledCat
Copy link
Author

My advised plan would be to do what PrettyXml does, add a simple setting allowing you to enable or disable it.

image

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

No branches or pull requests

1 participant