Preserve trailing newline in `TerminalOutput::full_text` (#38061)

Closes #30678

This is caused by `TerminalOutput::full_text` triming trailing newline
when creating the "REPL Output" buffer.

Release Notes:

- fix: Preserve trailing newline in `TerminalOutput::full_text`
bc528411dfImFeH2 committed on 9/23/2025, 7:11:35 PM· committed by GitHubparent9ac511e
1 file changedLine totals unavailable