Skip to content

Editor control uses \r line endings on Windows (not expected \r\n) #2849

@TommiGustafsson-HMP

Description

@TommiGustafsson-HMP

Documentation

Please add to the documentation of the Editor control that it uses \r line endings on Windows. One would expect it to be \r\n, which is the normal line ending for Windows. Also please provide an example how to convert line endings from \r to \r\n. Something like this:

#if WINDOWS
    string textWithWindowsLineEndings = Editor1.Text.Replace("\r", "\r\n");
#endif

Feature

One could also think about adding a feature for doing this automatically to .NET MAUI.

Related Info

microsoft/microsoft-ui-xaml#1826

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions