quotient-im / Quaternion

A Qt-based IM client for Matrix
https://matrix.org/ecosystem/clients/quaternion/
GNU General Public License v3.0
642 stars 107 forks source link

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

Open opk12 opened 2 years ago

opk12 commented 2 years ago

Description

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

Steps to reproduce

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 commented 2 years ago

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

KitsuneRal commented 2 years ago

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