nextcloud / nextcloud/notes-android

A single newline isn't being treated as a separater

Open
#1,783 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Editor::Plain
Dominant language
Java
Stars
1.1k
Forks
168
Avg merge
1d 17h
Merged PRs (30d)
31

Description

Please use GitHub reactions 👍 to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug
In Plain edit mode, a single newline isn't being treated as a separater similar to spaces which is breaking bold and italics rendering and possibly other formatting. Separating formatting by a space or two newlines still works. Also, this problem isn't occuring on the web version of Notes or the latest Apple store version of Nextcloud Notes. In the screenshot the top set shows the problem, the second set shows putting a space at the front of each line works okay, and the third set shows a double newline working okay.

To Reproduce
Steps to reproduce the behavior:

  1. Start a new note
  2. Type the following:
    one
    two
    three

Expected behavior
one, two, and three should all be bold, but only one is

Screenshots
Screenshot_20230427_070559_Nextcloud Notes

Smartphone (please complete the following information):

  • Nextcloud Notes-Version (android app): 4.0.0
  • F-Droid or Play Store: F-Droid
  • Android-Version: 12
  • Device: Samsung Galaxy S10

Server

  • Nextcloud version: 24.0.11
  • Nextcloud Notes version (server app): 4.5.1

Stacktrace
(not applicable)

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

Start by reproducing the issue in the Android app's Plain edit mode with the three lines shown in the report. Trace the formatting/rendering path to see how a single newline is handled, then compare it with a space and a double newline. Done means all three lines render bold, matching the expected behavior and the web and Apple versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.