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

Xml - strict whitespace leads to some weird formatting #1361

Open
belav opened this issue Oct 20, 2024 · 0 comments
Open

Xml - strict whitespace leads to some weird formatting #1361

belav opened this issue Oct 20, 2024 · 0 comments
Labels
area:formatting type:bug Something isn't working
Milestone

Comments

@belav
Copy link
Owner

belav commented Oct 20, 2024

Because CSharpier currently treats all xml as strict whitespace we end up with the formatting below.

Should strict whitespace be configurable?

The first case should at least be considered a bug, and the starting/ending tags not broken.

<Root>
  <Element Attribute="SomeValue"
    >
    Because whitespace is strict
    The indentation of the closing element can't change
      </Element
  >
  <Element>
    Shorter Text with indentation that can't change
    </Element>
</Root>
@belav belav added type:bug Something isn't working area:formatting labels Oct 20, 2024
@belav belav added this to the 1.1 milestone Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:formatting type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant