Merge "Always use ':' for indentation in preview"

This commit is contained in:
jenkins-bot 2020-11-05 16:41:23 +00:00 committed by Gerrit Code Review
commit 1f284947bb

View file

@ -511,11 +511,14 @@ ReplyWidget.prototype.preparePreview = function ( wikitext ) {
}
widget = this;
indent = {
dl: ':',
ul: '*',
ol: '#'
}[ this.context ];
// For now, indentation is always ':'. If we need context-aware
// indentation we would use the following:
// indent = {
// dl: ':',
// ul: '*',
// ol: '#'
// }[ this.context ];
indent = ':';
wikitext = wikitext || this.getValue();
if ( this.previewWikitext === wikitext ) {