From 096d5582721ae04632b94339f51891551948ff24 Mon Sep 17 00:00:00 2001 From: Bjornskjald Date: Thu, 1 Nov 2018 22:55:40 +0100 Subject: [PATCH] Add stripping leading and trailing spaces from the "format" field Bug: T177973 Change-Id: I5fc30479485da59b5ea097f97a2dfb7ec149918f --- modules/ext.templateDataGenerator.ui.tdDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ext.templateDataGenerator.ui.tdDialog.js b/modules/ext.templateDataGenerator.ui.tdDialog.js index 2ae4f86e..120ad325 100644 --- a/modules/ext.templateDataGenerator.ui.tdDialog.js +++ b/modules/ext.templateDataGenerator.ui.tdDialog.js @@ -500,7 +500,7 @@ mw.TemplateData.Dialog.prototype.onTemplateFormatInputWidgetChange = function ( this.templateFormatInputWidget.setValue( newValue ); // Will recurse to actually set value in model. } else { - this.model.setTemplateFormat( format ); + this.model.setTemplateFormat( this.displayToFormat( value.trim() ) ); } } };