mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
Fix OL list items not increasing (#4749)
* tests: additional test coverage for OL items * parseInt means we can do a proper check * tests: use ol check value test for #4748
This commit is contained in:
parent
60a55ec428
commit
cc7f11560f
2 changed files with 16 additions and 1 deletions
|
@ -101,7 +101,7 @@ domline.createDomLine = (nonEmpty, doesWrap, optBrowser, optDocument) => {
|
|||
postHtml = `</li></ul>${postHtml}`;
|
||||
} else {
|
||||
if (start) { // is it a start of a list with more than one item in?
|
||||
if (start[1] === 1) { // if its the first one at this level?
|
||||
if (Number.parseInt(start[1]) === 1) { // if its the first one at this level?
|
||||
// Add start class to DIV node
|
||||
lineClass = `${lineClass} ` + `list-start-${listType}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue