Search Issue Tracker

Fixed in 2022.1.X

Votes

1

Found in

2019.4

2020.3

2020.3.12f1

2021.1

2021.2

2022.1

Issue ID

1345149

Regression

Yes

A space at the beginning of the Text disappears after reopening the Scene

Serialization

-

How to reproduce:
1. Open the user's attached project
2. Open the '1' Scene
3. In the Hierarchy select Canvas > Text 8
4. Add a space before the first 'a' in the third line
5. Save the Scene
6. Reopen the Scene
7. Observe the text

Expected result: There is an empty space before the first 'a' in the third line
Actual result: The is no empty space before the first 'a' in the third line

Reproducible with: 2019.4.0f1, 2019.4.28f1, 2020.3.13f1, 2021.1.14f1, 2021.2.0b2, 2022.0a1
Not reproducible with: 2018.4.36f1

  1. Resolution Note (fix version 2022.1):

    Fix bug in YAML parsing, where spaces in double quoted multi-line strings could be lost when there was an escaped newline directly at the end of a line.
    Fixed inĀ 2022.2.0a1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.