Repository: flutter
Issue: LicenseEntryWithLineBreaks Fails to Properly Display Line Breaks in License Text
Labels: framework,has reproducible steps,P2,team-framework,triaged-framework,found in release: 3.19,found in release: 3.21

### Steps to reproduce

1. Launch the application from the following link and tap on "showLicensePage":
https://github.com/motucraft/issue_license_new_line
1. Tap on "add_license_for_sample".
1. The issue can be observed.

### Expected results

Newlines in the license file are correctly identified.

### Actual results

The text from the OFL license file (found at https://openfontlicense.org/documents/OFL.txt) does not display with the correct line breaks. Instead of appearing as formatted in the source file, the text runs together without proper line breaks, making it difficult to read and understand.


### Code sample

https://github.com/motucraft/issue_license_new_line/blob/main/lib/main.dart

### Screenshots or Video

https://github.com/motucraft/issue_license_new_line/tree/main?tab=readme-ov-file#issue_license_new_line

### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
% flutter doctor -v
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.4 23E214 darwin-arm64, locale ja-JP)
    • Flutter version 3.19.3 on channel stable at /Users/osaki/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ba39319843 (13 days ago), 2024-03-07 15:22:21 -0600
    • Engine revision 2e4ba9c6fb
    • Dart version 3.3.1
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/osaki/Library/Android/sdk
    • Platform android-34, build-tools 33.0.2
    • Java binary at: /Users/osaki/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Users/osaki/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.5)
    • IntelliJ at /Users/osaki/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 78.3.1
    • Dart plugin version 233.14888

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • motucraft (mobile)                  • 00008130-001A34290CC2001C            • ios            • iOS 17.4 21E219
    • iPhone SE (3rd generation) (mobile) • FDAE2A23-F969-4989-91EF-052FC8A2F742 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
    • macOS (desktop)                     • macos                                • darwin-arm64   • macOS 14.4 23E214 darwin-arm64
    • Chrome (web)                        • chrome                               • web-javascript • Google Chrome 122.0.6261.129

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>