Converse.js: Ignore newlines prior to content in a message

Created on 14 Mar 2019  ·  5Comments  ·  Source: conversejs/converse.js

When a message body starts with a newline, that newlines shouldn't be displayed when rendering the message. The message body should always be displayed on the first line.

UX bug

Most helpful comment

What if that whitespace has meaning? :/

Spoken like a true Python programmer

All 5 comments

On March 14, 2019 10:37:51 AM UTC, Guus der Kinderen notifications@github.com wrote:

When a message body starts with a newline, that newlines shouldn't be
displayed when rendering the message. The message body should always be
displayed on the first line.

Why would you not have the message displayed as it arrives and fix the issue on the other side rather?

Why would you not have the message displayed as it arrives and fix the issue on the other side rather?

Because I can't force people that use misbehaving clients to update, but I can update my client.

On 2019/03/17, Guus der Kinderen wrote:

Why would you not have the message displayed as it arrives and fix the issue on the other side rather?

Because I can't force people that use misbehaving clients to update, but I can update my client.

What if that whitespace has meaning? :/

--
Maxime “pep” Buquet

It won't have for 99%+ of the occurrences, and people that would have liked
to somehow use it, won't be surprised if it didn't work (as Conversations
also trims leading newline characters)

Op zo 17 mrt. 2019 12:43 schreef Maxime Buquet notifications@github.com:

On 2019/03/17, Guus der Kinderen wrote:

Why would you not have the message displayed as it arrives and fix the
issue on the other side rather?

Because I can't force people that use misbehaving clients to update, but
I can update my client.

What if that whitespace has meaning? :/

--
Maxime “pep” Buquet


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/conversejs/converse.js/issues/1494#issuecomment-473657524,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEDoyvW7IDpR4Z9rL05_iDvvKn9WKP8aks5vXipPgaJpZM4bz0JU
.

What if that whitespace has meaning? :/

Spoken like a true Python programmer

Was this page helpful?
0 / 5 - 0 ratings