mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 10:58:20 +00:00
Merge "Always use ':' for indentation in preview"
This commit is contained in:
commit
1f284947bb
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue