csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

Xml - strict whitespace leads to some weird formatting

Open belav opened this issue 1 year ago • 0 comments

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 avatar Oct 20 '24 16:10 belav