Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying a message turns \n into Unicode line separator #814

Open
opk12 opened this issue Jan 22, 2022 · 2 comments
Open

Copying a message turns \n into Unicode line separator #814

opk12 opened this issue Jan 22, 2022 · 2 comments
Labels
bug/fix Quaternion doesn't work as expected

Comments

@opk12
Copy link

opk12 commented Jan 22, 2022

Description

A Unicode line separator character is copied in place of the \nthat was sent.

Steps to reproduce

  • Select, and copy, a message with json body a\nb.
  • Paste into the github new issue form, it becomes ab (without newline).
  • Paste into nano, it becomes a b (space without newline).
  • Paste into gvim, it becomes a, followed by an arrow symbol, b.

printf '%s' '<paste here>' | hexdump -C shows that e2 80 a8 (which apparently is UTF-8 for the Unicode "LS Line Separator" \u2028) is copied in place of the usual Unix newline 0a ASCII line feed.

Version information

Quaternion 0.0.95.1 on Fedora 35
Quaternion 0.0.9.5 on Debian 11

@opk12
Copy link
Author

opk12 commented Jan 22, 2022

For completeness - this is not specifically about HTML messages, it also happens with plain-text messages without formatted_body.

@KitsuneRal KitsuneRal added the bug/fix Quaternion doesn't work as expected label Jan 23, 2022
@KitsuneRal
Copy link
Member

Thanks; looks like text conversions along the way accidentally de-screen \n into an actual line-break.

@KitsuneRal KitsuneRal moved this to 0.0.97 - To Do in Quaternion 1 Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Quaternion doesn't work as expected
Projects
Status: 0.0.97 - To Do
Development

No branches or pull requests

2 participants