RocketChat / Rocket.Chat

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

Zip export feature doesn't support multi-line message #21445

Open Slug-V opened 3 years ago

Slug-V commented 3 years ago

Description:

When you choose "Export Message" -> "Export as File", you can get zipped messages. But all messages are shown as single-line messages even if it's multi-line messages. This is a fatal readability issue.

Steps to reproduce:

This is an expected reproduction method with open.rocket.chat, but I faced this in my own server wrote in Server Setup Information.

  1. make sure your account has a valid email address
  2. sign in to open.rocket.chat
  3. make a channel or private group
  4. make some message with multiple lines
  5. choose "Export Message" from the option in the channel action bar
  6. choose "Export as File", a term that contains today, "HTML", and click the "Export" button
  7. extract zip from the e-mail
  8. check the HTML

Expected behavior:

all messages are shown, including multi-line messages.

Actual behavior:

They're shown, but each multi-line message was shown as a single-line message (via just ignoring new-line characters). This makes the archive unreadable if there was a user who makes heavy multi-line messages in the channel/room.

Server Setup Information:

Client Setup Information

Additional context

Ideally, I think it's better the HTML export feature to support Markdown.

Relevant logs:

none(this problem is about missing-feature, so there is no problematic log)

Govi59 commented 2 years ago

Still relevent on version 3.17.2