line after a title should be of normal type

This commit is contained in:
Jean-Tiare Le Bigot 2012-03-02 18:29:15 +01:00
parent 11fc9f220b
commit edc9212ff1
2 changed files with 7 additions and 2 deletions

View file

@ -3367,7 +3367,12 @@ function Ace2Inner(){
var level = Number(listType[2]);
//detect empty list item; exclude indentation
if(text === '*' && type !== "indent")
if(type == "title")
{
performDocumentReplaceSelection('\n');
setLineListType(lineNum + 1, '');//remove the list
}
else if(text === '*' && type !== "indent")
{
//if not already on the highest level
if(level > 1)