Description

If the user has a code FString that used "\n", that's interpreted as a line break and is removed. This can cause confusion for users attempting to get the length of the value since it will not match what they expect.

The specific case a user encountered was with a Google RSA key that had this in the string.

Steps to Reproduce

With Attached Project:

  1. Download and extract the attached project.
  2. Build and open the project in editor.
  3. Open NewBlueprint.

FROM SCRATCH:

  1. Create a new code project.
  2. Create a new Actor code class.
  3. Add the following to the class header:
  • 	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test)
    		FString TestString = "Test\nTest";
    
  1. Compile.
  2. Open the project in editor.
  3. Create a blueprint based on your class and open it.

RESULT

Test String reads "Test Test" on two lines.

EXPECTED

Test String reads "Test\nTest".

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-92725 in the post.

1
Login to Vote

By Design
ComponentUE - Foundation - Core
Affects Versions4.244.25
CreatedMay 4, 2020
ResolvedMay 5, 2020
UpdatedMay 5, 2020
View Jira Issue