element-hq / element-hq/element-android
Code blocks collapse spaces destroying whitespace-sensitive code
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- Avg merge
- 8d 20h
- Merged PRs (30d)
- 1
Description
Send a code block that contains some whitespace-sensitive code. This could be something serious such as a Python snippet, which becomes impossible to interpret, other indented code which merely becomes illegible, or fun things such as the ASCII art in the following example.
### Steps to reproduce
Send a message using:
Element Nightly version: 2023022001
Olm version: 3.2.12

### Outcome
#### What did you expect?
match desktop
#### What happened instead?
all spaces at the start of a line are collapsed, except the first line

### Your phone model
_No response_
### Operating system version
13
### Application version and app store
1.5.25 F-Droid
### Homeserver
synapse 1.77.0
### Will you send logs?
No
### Are you willing to provide a PR?
No
Contributor guide
Assessment
This issue has not been assessed yet.