This project is read-only.

XmlAttributePreservingWriter needlessly removes space before closing of tag


We're having a problem with doing diffs between the transformed web.configs vs web.configs that have been re-formatted by IIS. For some reason, XmlAttributePreservingWriter is removing the space between the last attribute value and the end of a self closing tag.

ex: I expect to see this: <tag value="thing" />
not this: <tag value="thing"/>

The UpdateState method in the private AttributeTextWriter class is intentionally removing the space, but I can't see a reason why.