added handling of de-indenting when already on higher level
This commit is contained in:
parent
42341f2b2f
commit
6b11ae330d
1 changed files with 2 additions and 2 deletions
|
@ -3560,10 +3560,10 @@ function OUTER(gscope)
|
||||||
foundLists = true;
|
foundLists = true;
|
||||||
var t = listType[1];
|
var t = listType[1];
|
||||||
var level = Number(listType[2]);
|
var level = Number(listType[2]);
|
||||||
var newLevel = Math.max(1, Math.min(MAX_LIST_LEVEL, level + (isOut ? -1 : 1)));
|
var newLevel = Math.max(0, Math.min(MAX_LIST_LEVEL, level + (isOut ? -1 : 1)));
|
||||||
if (level != newLevel)
|
if (level != newLevel)
|
||||||
{
|
{
|
||||||
mods.push([n, t + newLevel]);
|
mods.push([n, (newLevel > 0) ? t + newLevel : '']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue