anyproto / anytype-ts

Official Anytype client for MacOS, Linux, and Windows
https://anytype.io
Other
3.63k stars 215 forks source link

fix normalize line endings to handle Windows clipboard \r\n issue #743

Closed Bofutw closed 1 month ago

Bofutw commented 1 month ago


Description

This PR fixes a bug where copying and pasting text into anytype's code blocks from Windows results in an extra blank line due to the \r\n newlines being interpreted as two newline characters.

What type of PR is this? (check all applicable)

Related Tickets & Documents

None.

Mobile & Desktop Screenshots/Recordings

Before

anytype-paste-newline

After

anytype-paste-fix

Added tests?

Added to documentation?

github-actions[bot] commented 1 month ago

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

Bofutw commented 1 month ago

I have read the CLA Document and I hereby sign the CLA

ra3orblade commented 1 month ago

I have approved but it's a draft.