Copying a message causes code snippets to break
Versions
- OS: Linux
- Gajim version: 1.7.3
- GTK version: 3.24.37
- Python-nbxmpp version: 4.2.2
Steps to reproduce the problem
- Open Note to myself.
- Write code snippet in chat.
```c #include "stdio.h" ``` ```c #include "stdio.h" ```
- Send the message.
- Copy the message using the context menu.
- Paste the message in chat.
It will look like
2023-05-02T05:22:01 - vito: ```c #include "stdio.h" ``` ```c #include "stdio.h" ```
- Send the message.
Expected behavior
Copy-pasted code snippets must start on a new line.
2023-05-02T05:22:01 - vito:
```c
#include "stdio.h"
```
2023-05-02T05:22:11 - vito:
```c
#include "stdio.h"
```
2023-05-02T05:22:01 - vito:
#include "stdio.h"
2023-05-02T05:22:11 - vito:
#include "stdio.h"
Actual behavior
The copied code snippets are not displaying correctly.
2023-05-02T05:22:01 - vito: ```c
#include "stdio.h"
```
2023-05-02T05:22:11 - vito: ```c
#include "stdio.h"
```
2023-05-02T05:22:01 - vito: ```c #include "stdio.h"
2023-05-02T05:22:11 - vito: ```c #include "stdio.h"