nextcloud / nextcloud/notes-android

adding new line in middle of numbered list don't update the numbers in edit mode

Open
#1,817 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

when you create a numbered list with 1. , if you edit the list in the middle it will not update the list when in edit mode, however it will in view mode

To Reproduce
Steps to reproduce the behavior:

  1. Go to a note with a numbered list
  2. Click on 'edit'
  3. Put the cursor at the end of a line somewhere in the middle of the list
  4. Add a new line, it will create a new item in the numbered list
  5. the item will have the right number (previous line + 1), but the next lines will not be incresead
  6. illustration :
before :
1. miley cyrus
2. Aretha Franklin
3. ella fitzgerald
4. lady gaga

after :
1. miley cyrus
2. Aretha Franklin
3. ella fitzgerald
3. 
4. lady gaga

after :
1. miley cyrus
2. Aretha Franklin
3. ella fitzgerald
3. lana del rey
4. lady gaga

Expected behavior

having the list edited with the right numbers

Smartphone (please complete the following information):

  • Nextcloud Notes-Version (android app): v4.0.0
  • App source: F-Droid
  • Android-Version: 6.0.1
  • Device: AZUS_Z00MD
  • System language: English (US)

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

Reproduce the issue in the Android app by inserting a line into the middle of a numbered list while in edit mode, then trace the numbered-list editing path. Done means the inserted item and every following item display the correct numbers during editing and in view mode.

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
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.