Skip to content

Xml - strict whitespace leads to some weird formatting #1361

@belav

Description

@belav

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>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions