diff --git a/app/assets/javascripts/discourse/components/d-editor.js.es6 b/app/assets/javascripts/discourse/components/d-editor.js.es6 index 21639fd76f3..dcb3e9d9a49 100644 --- a/app/assets/javascripts/discourse/components/d-editor.js.es6 +++ b/app/assets/javascripts/discourse/components/d-editor.js.es6 @@ -536,7 +536,7 @@ export default Ember.Component.extend({ formatCode() { const sel = this._getSelected(); - const hasNewLine = sel.value.indexOf("\n") !== -1 + const hasNewLine = sel.value.indexOf("\n") !== -1; if (this.siteSettings.code_formatting_style === FOUR_SPACES_INDENT) { return (hasNewLine ?