etherpad-lite/src
John McLear 4c70991fcc
fix: reset list numbering when switching from unordered to ordered list (#7436)
When an ordered list followed directly after an unordered list (no blank
line between), all OL items showed "1" instead of incrementing. This was
because renumberList's applyNumberList function counted bullet items in
the position counter, so the first OL item got start=3 (after 2 bullet
items) instead of start=1, preventing the CSS counter-reset class from
being applied.

The fix resets the position counter when the list type changes at the
same level (e.g., bullet -> number).

Fixes: https://github.com/ether/etherpad-lite/issues/5160

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 07:13:16 +01:00
..
locales Localisation updates from https://translatewiki.net. 2026-03-30 14:05:40 +02:00
node fix: wait for server confirmation before navigating after pad delete (#7432) 2026-04-03 07:12:46 +01:00
static fix: reset list numbering when switching from unordered to ordered list (#7436) 2026-04-03 07:13:16 +01:00
templates Enforce 2-space indentation across codebase (#7426) 2026-04-01 19:48:45 +01:00
tests fix: reset list numbering when switching from unordered to ordered list (#7436) 2026-04-03 07:13:16 +01:00
.eslintrc.cjs Feat/admin react (#6211) 2024-03-09 23:07:09 +01:00
ep.json 7139 let user maintain a single session across multiple browsers (#7228) 2025-11-18 12:23:55 +01:00
etherpad_icon.svg Change favicon to be closer to new style 2020-04-19 18:20:21 +02:00
package.json build(deps-dev): bump the dev-dependencies group with 8 updates (#7429) 2026-04-01 21:33:09 +01:00
playwright.config.ts fix: stabilize frontend tests and drop webkit from CI (#7433) 2026-04-01 23:37:36 +01:00
README.md remove one less warning during install by having a readme placeholder 2013-02-10 03:04:08 +00:00
tsconfig.json build(deps-dev): bump the dev-dependencies group with 8 updates (#7429) 2026-04-01 21:33:09 +01:00
vitest.config.ts Feat/changeset ts (#6594) 2024-08-18 12:14:24 +02:00
web.config Added typescript to etherpad 2024-02-05 21:13:02 +01:00

Ignore this file and see the file in the base installation folder