Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting and editing multi line text removes line breaks #4768

Closed
ChristophWurst opened this issue Sep 4, 2023 · 3 comments · Fixed by #4872
Closed

Pasting and editing multi line text removes line breaks #4768

ChristophWurst opened this issue Sep 4, 2023 · 3 comments · Fixed by #4872
Labels
bug Something isn't working high

Comments

@ChristophWurst
Copy link
Member

Describe the bug

Pasted multi line text shows with line breaks until one of the lines is edited.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new text file
  2. Copy-paste
Lorem
Ipsum
  1. Add a x after Lorem

Expected behavior

Loremx
Ipsum

Actual behavior

Loremx Ipsum

Screenshots
If applicable, add screenshots to help explain your problem.

Server details:

  • Nextcloud version: 27.1
  • PHP Version: [e.g. 8.2]
  • Database: [e.g. MariaDB 10.6]

Client details:

  • OS: [e.g. Windows/macOS/Ubuntu]
  • Browser: [e.g. Firefox, Chrome]
  • Browser version: [e.g. 22]
  • Device: [e.g. iPhone6, desktop]
Logs

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@ChristophWurst ChristophWurst added the bug Something isn't working label Sep 4, 2023
@XueSheng-GIT
Copy link

The same happens if you create a markdown file locally with regular (single) line breaks and upload this file to nextcloud. Line breaks of the whole text are removed if you start editing in nextcloud. I assume this is the same issue.
Maybe related: #3568

@mejo-
Copy link
Member

mejo- commented Sep 5, 2023

@ChristophWurst what you describe is already reported here, no? #4602

@ChristophWurst
Copy link
Member Author

It sounds very similar but there are no unexpected linebreaks for me. I do expect the lines to break once and they do. If I modify the text there are no line breaks left at all

@mejo- mejo- added the high label Oct 12, 2023
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Oct 12, 2023
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 📄 To do (~10 entries) in 📝 Office team Oct 12, 2023
@github-project-automation github-project-automation bot moved this from 📄 To do (~10 entries) to ☑️ Done in 📝 Office team Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants