element-hq / element-hq/element-android

Display line breaks

Open
#2,183 4 comments 1 reaction 0 assignees View on GitHub
T-Enhancement
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Currently, Element Android 1.0.7, line breaks are not displayed. So this text
```
Erlauntza
Alde:
-Alegoria
```
will be displayed as
`Erlauntza Alde: -Alegoria`

To sum up, the messages on Element strip line breaks and inline spaces.

**Describe the solution you'd like**
The logical display would be to maintain the original structure, only stripping initial and final spaces.
But all the line breaks and inline spaces should be displayed.

The problem with this can come with the lack of message-boxes on Element (unlike most message apps)

**Additional context**
Here can be seen an example of the current behaviour. The top message is how it is displayed. The bottom, how it really is (via editing)
![IMG_20200929_152529](https://user-images.githubusercontent.com/61913683/94564254-16f5e480-0268-11eb-8cd8-49ac3e47be92.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.