浏览代码

HUE-7296 [frontend] Don't mark invisible space in the Ace highlight binding

Johan Ahlen 8 年之前
父节点
当前提交
e6a00b3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 0
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -5831,6 +5831,7 @@
           });
 
           element.innerHTML = '<div class="ace_editor ace-hue"><div class="ace_layer" style="position: static;">' + res.join('') + '</div></div>';
+          $(element).find('.ace_invisible_space').remove();
         });
       }