Skip to content

XmlCustomFormatter is using string.Trim() instead of string.Trim(XmlConverter.WhitespaceChars) #75523

@TrayanZapryanov

Description

@TrayanZapryanov

This looks more like a mistake than the desired behavior, but it will be a breaking change if we replace it.
String.Trim() is filtering much more characters than :

internal static readonly char[] WhitespaceChars = new char[] { ' ', '\t', '\n', '\r' };

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions