Skip to content

Fix special ASCII characters not being escaped when copied to clipboard#306

Merged
encounter merged 2 commits intoencounter:mainfrom
LagoLunatic:escape-copy
Dec 21, 2025
Merged

Fix special ASCII characters not being escaped when copied to clipboard#306
encounter merged 2 commits intoencounter:mainfrom
LagoLunatic:escape-copy

Conversation

@LagoLunatic
Copy link
Collaborator

Fixing a regression introduced in #288. We decided that Unicode characters like   should be copied to the clipboard as-is and only be escaped for displaying them, but the way I made this change also resulted in the ASCII characters \n \t \r and \ being copied as-is too, which is annoying when you want to paste these strings into source code. So this reverts ASCII characters to their previous behavior, but still leaves Unicode characters like   unescaped.

@encounter encounter merged commit c0b9bfa into encounter:main Dec 21, 2025
24 checks passed
@LagoLunatic LagoLunatic deleted the escape-copy branch December 21, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants