Skip to content

Cannot get the expected result when set "\r\n" to RichTextBox.Text property #3778

@John-Qiao

Description

@John-Qiao
  • .NET Core Version:
    5.0.0-rc.1.20425.1

  • Have you experienced this same bug with .NET Framework?:
    No

More info:

  1. This issue does not occur in .NET Framework.
  2. This issue does not occur in .NET Core 3.1 and .NET 5.0 Preview 8. It's a regression issue in 5.0.0-rc.1.20425.1.
  3. It maybe caused by this PR: 3726

Problem description:

Cannot get the expected result in RichTextBox.Text property when included the "\r\n" in it.
image

Expected behavior:
Should get the below value from RichTextBox.Text property. Like it works in .NET Framework and previous version of .NET Core SDK.
image

Minimal repro:

  1. Launch the attached project in VS.
  2. Run it and observe the value for richTextBox1.Text in debugging.
    Issue1-TestApp.zip

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions