nextcloud / nextcloud/notes

Line break issue in Rich Text Mode

Open
#1,007 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: Rich Text need to reproduce
Dominant language
JavaScript
Stars
738
Forks
162
Avg merge
6h 2m
Merged PRs (30d)
35

Description

When using Rich Text Mode instead of the classic editing mode, line breaks after enumerations using hyphens are no longer recognized and replaced by space letters in the same line. When one inserts a new line with Shift+Enter and puts two spaces before an arrow for an indented line
- text
-> text
It creates a back slash to perform a line break:
- text
\-> text
But when reediting the note in the editing mode, the back slash appears as a regular letter. Hence, there is a compatibility issue between the editors for line breaks.

Steps to reproduce

  1. Create a .txt file in classic editing mode
  2. Add enumerations using hyphens, some indented with space letters
  3. Try to load and edit the note with Rich Text Mode

Server

  • Notes app version: 4.7.2
  • Nextcloud version: 26.0.0
  • OS: Linux
  • Web server:
  • PHP version: 8.1
  • Database: MySQL

Client

  • Browser (incl. version): Firefox for Mac 111.0.1
  • OS: macOS 12.6.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Reproduce the issue by creating a .txt note in classic editing mode, opening it in Rich Text Mode, and comparing the hyphenated line breaks; done means the same indented lines remain compatible in both editors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.