Merge branch 'develop' of github.com:ether/etherpad-lite into admin-tests

admin-tests
John McLear 2021-02-06 22:44:47 +00:00
commit bd3a3f941c
1 changed files with 2 additions and 0 deletions

View File

@ -237,6 +237,8 @@ const getTXTFromAtext = (pad, atext, authorColors) => {
if (line.listLevel > 1) {
let x = 1;
while (x <= line.listLevel - 1) {
// if it's undefined to avoid undefined.undefined.1 for 0.0.1
if (!listNumbers[x]) listNumbers[x] = 0;
pieces.push(`${listNumbers[x]}.`);
x++;
}