basecamp / basecamp/lexxy

Shift+Enter line breaks in list items are lost on save/reload

Open
#1,004 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
119
Avg merge
4d 8h
Merged PRs (30d)
15

Description

Line breaks added via Shift+Enter between ordered (or unordered) list items do not survive a save and reload cycle. The
elements are silently dropped during HTML re-import into the editor.

Steps to reproduce
Create an ordered list with 3 or more items
Place the cursor at the end of a list item
Press Shift+Enter to insert a blank line (line break) between items
Save the form
Reload the page and open the editor again
Expected: The blank line spacing between list items is preserved.

Actual: All Shift+Enter line breaks are stripped. The list items are collapsed back together with no spacing.

Additional detail
With only 2 list items, the line break sometimes persists. With 3 or more items, line breaks are stripped entirely on every reload.

Environment
Lexxy 0.9.5.beta
Rails 8.1
Tested in Chrome (latest)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the save and reload cycle with three or more list items, then trace the editor's HTML re-import path where br elements are dropped. Done means Shift+Enter line breaks remain visible between ordered and unordered list items after reload, including the three-item case.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.