зеркало из https://github.com/mozilla/pjs.git
Fix for bug #99517: Text migrates past H. Line, loses formatting when converted to list
Modified WillMakeList() to clear prevListItem after adding a block to a list item so that any inline nodes after the block are put in a new list item. r=jfrancis@netscape.com sr=sfraser@netscape.com
This commit is contained in:
Родитель
2bb8427c70
Коммит
85e6822f31
|
@ -2403,6 +2403,8 @@ nsHTMLEditRules::WillMakeList(nsISelection *aSelection,
|
||||||
if (NS_FAILED(res)) return res;
|
if (NS_FAILED(res)) return res;
|
||||||
if (IsInlineNode(curNode))
|
if (IsInlineNode(curNode))
|
||||||
prevListItem = listItem;
|
prevListItem = listItem;
|
||||||
|
else
|
||||||
|
prevListItem = nsnull;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче