Skip to content

Table cells containing repeated newlines get garbled #5737

Closed
@asmecher

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:

  1. Create a new page inside a Collective.
  2. Insert a table into it.
  3. Enter content into a cell containing consecutive newlines.
    image
    (I entered these by copying a newline from the table and pasting it a couple times.)
  4. Save the page
  5. Load the page. See the changed content:
    image

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    ☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions