From 3c88f7de39d5296948d0db1a39b015c5c6b5619c Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 5 Nov 2020 16:15:38 +0000 Subject: [PATCH] Always use ':' for indentation in preview Matches what we end up posting. Leave context-aware code commented out as this issue is not settled yet. Change-Id: I7360e53d5d7823b2b52318005459212a21a6edc2 --- modules/dt.ui.ReplyWidget.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/dt.ui.ReplyWidget.js b/modules/dt.ui.ReplyWidget.js index a187f536d..ec777a7b4 100644 --- a/modules/dt.ui.ReplyWidget.js +++ b/modules/dt.ui.ReplyWidget.js @@ -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 ) {