Merge "Let's not put slugs around lists because there is no such need."

This commit is contained in:
jenkins-bot 2013-06-07 00:10:19 +00:00 committed by Gerrit Code Review
commit 06551322ea

View file

@ -160,7 +160,10 @@ ve.ce.Node.prototype.isContent = function () {
* @returns {boolean} Whether the node can have a slug before it
*/
ve.ce.Node.prototype.canHaveSlugBefore = function () {
return !this.canContainContent() && this.getParentNodeTypes() === null && this.type !== 'text';
return !this.canContainContent() &&
this.getParentNodeTypes() === null &&
this.type !== 'text' &&
this.type !== 'list';
};
/**