RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.51k stars 10.55k forks source link

Text formatting doesn't work for multiline text #33065

Open mueller-ma opened 2 months ago

mueller-ma commented 2 months ago

Description:

When a text contains a newline the built-in text formatting buttons don't work:

grafik

Steps to reproduce:

  1. Enter the following text in the new message field:
This is
a test
  1. Mark both lines
  2. Press the "B" (bold) button
  3. The text becomes:
    *This is
    a test*
  4. Send message

Expected behavior:

The button should change the text to:

grafik

*This is*
*a test*

Actual behavior:

See above.

Server Setup Information:

Client Setup Information

reetp commented 2 months ago

Thanks for reporting.

As I mentioned in #33067 as per the docs please always test on the latest version before reporting as Rocket.Chat is fast moving and things are often fixed in newer versions.

I'd also update your own version to the latest - there is a security fix in there IIRC.

https://github.com/RocketChat/Rocket.Chat/releases/tag/6.10.4

I have tested this on open.rocket.chat which is always 'latest' and I can see it occurring.

I'll mention it to the team.