Browse Source

HUE-2648 [spark] Scala editor indents by 2 spaces for each new line

Removed auto-indent feature
Enrico Berti 10 years ago
parent
commit
b94067b663
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/spark/src/spark/templates/editor.mako

+ 1 - 1
apps/spark/src/spark/templates/editor.mako

@@ -366,7 +366,7 @@ ${ commonheader(_('Query'), app_name, user, "68px") | n,unicode }
                 <input type="text" data-bind="value: value" />
               </div>
             </div>
-            <textarea data-bind="value: statement_raw, codemirror: { 'id': id(), 'viewportMargin': Infinity, 'lineNumbers': true, 'matchBrackets': true, 'mode': editorMode(), 'enter': execute }">
+            <textarea data-bind="value: statement_raw, codemirror: { 'id': id(), 'viewportMargin': Infinity, 'lineNumbers': true, 'indentUnit': 0, 'matchBrackets': true, 'mode': editorMode(), 'enter': execute }">
             </textarea>
             <a data-bind="visible: status() == 'loading'" class="btn btn-disabled codeMirror-overlaybtn" title="${ _('Creating session') }">
               <i class="fa fa-spinner fa-spin"></i>