Table cells containing repeated newlines get garbled #5737
Closed
Description
Describe the bug
When a collective contains a table, and the table cell contains consecutive newlines, the content gets garbled with a save/reload cycle.
To Reproduce
Steps to reproduce the behavior:
- Create a new page inside a Collective.
- Insert a table into it.
- Enter content into a cell containing consecutive newlines.
(I entered these by copying a newline from the table and pasting it a couple times.) - Save the page
- Load the page. See the changed content:
The content appears to jump boundaries in the Markdown representation.
I would have filed this in the Nextcloud text editor repo, but I'm not able to reproduce the problem outside of Collectives, oddly!
Expected behavior
The text should be unchanged after a save/reload cycle.
Server details:
- Collectives app version: 2.9.1
- Nextcloud version: 27.1.3
- PHP Version: 8.1.25
- Database: PostgreSQL 15.5
Client details:
- OS: Ubuntu
- Browser: Firefox
- Browser version: 125.0.2
- Device: Desktop
Metadata
Assignees
Type
Projects
Status
☑️ Done
Activity