cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.87k stars 242 forks source link

Line breaks seem to get lost along the way #584

Closed grandeljay closed 2 years ago

grandeljay commented 2 years ago

Describe the bug

When writing multiple paragraphs in cinny, the empty ones are removed, making the text harder to read.

Reproduction

Test 1

Write the following message in cinny:

Hello World
This is a test

There should be a line break above this
The output is as follows Cinny Element
Hello World
This is a test
There should be a line break above this
Hello World This is a test

There should be a line break above this

Test 2

Write the following message in element:

Hello World
This is a test

There should be a line break above this
The output is as follows Cinny Element
Hello World
This is a test

There should be a line break above this
Hello World
This is a test

There should be a line break above this

Expected behavior

I expect the line breaks to be the same way as they were during message creation (before sending)

Platform and versions

OS: Windows 10
Browser: LibreWolf (Firefox) v100.0-3
Cinny: v2.0.3
Homeserver: matrix.org

Additional context

I think I have an option enabled to send message in markdown.

kfiven commented 2 years ago

Why this happens is really well explained by @samueldr in #174 and seems duplicate of #193.