element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.18k stars 2k forks source link

Edited `/me` m.emotes have spurious linewrapping. #28009

Open ara4n opened 2 months ago

ara4n commented 2 months ago

Steps to reproduce

  1. Send /me waves
  2. Edit it to say /me waves again
  3. Observe a spurious linebreak is added between the sender name and the message contents: Screenshot 2024-09-04 at 12 58 21

Outcome

What did you expect?

No line break. Either the edit should be plaintext, or the the client should strip any wrapping paragraph tags in order to display the contents without introducing a linebreak.

What happened instead?

It looks like the edit is adding a spurious paragraph tag around the message.

Operating system

No response

Application version

Element Nightly version: 2024090301 Crypto version: Rust SDK 0.7.1 (c8c9d15), Vodozemac 0.6.0

How did you install the app?

No response

Homeserver

No response

Will you send logs?

No

ara4n commented 2 months ago

See also https://github.com/element-hq/element-web/issues/27896 (and https://github.com/element-hq/element-web/issues/6090)

ara4n commented 1 month ago

This is surprisingly common and super ugly:

Screenshot 2024-10-03 at 14 48 48