\r ends up unescaped in formatted copy on blank lines #5867

Closed
opened 2026-01-31 00:23:46 +00:00 by claunia · 3 comments
Owner

Originally created by @mcpiroman on GitHub (Jan 12, 2020).

Introduced by #2038

Select some text in terminal, copy and paste to e.g. Word. For every blank line in terminal there, are 2 blank lines in the output. One from <BR> and one from \r, which sneaks in unescaped.

Originally created by @mcpiroman on GitHub (Jan 12, 2020). Introduced by #2038 Select some text in terminal, copy and paste to e.g. Word. For every blank line in terminal there, are 2 blank lines in the output. One from `<BR>` and one from `\r`, which sneaks in unescaped.
Author
Owner

@zadjii-msft commented on GitHub (Jan 13, 2020):

Wow yea that's absolutely true. Good catch 😄

@zadjii-msft commented on GitHub (Jan 13, 2020): Wow yea that's absolutely true. Good catch 😄
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 13, 2020):

That's not great! Thanks.

@DHowett-MSFT commented on GitHub (Jan 13, 2020): That's not great! Thanks.
Author
Owner

@ghost commented on GitHub (Jan 27, 2020):

:tada:This issue was addressed in #4190, which has now been successfully released as Windows Terminal Preview v0.8.10261.0.🎉

Handy links:

@ghost commented on GitHub (Jan 27, 2020): :tada:This issue was addressed in #4190, which has now been successfully released as `Windows Terminal Preview v0.8.10261.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.8.10261.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5867