From bff90d72f747c0fc11d26a8cc8d0ee19a0d807f1 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Tue, 9 Jul 2013 21:12:08 +0900 Subject: [PATCH] ZODB Components: Follow ERP5 Python indentation style in Ace editor. --- .../portal_skins/erp5_ace_editor/ace_editor_support.xml | 2 ++ bt5/erp5_ace_editor/bt/change_log | 3 +++ bt5/erp5_ace_editor/bt/revision | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_ace_editor/SkinTemplateItem/portal_skins/erp5_ace_editor/ace_editor_support.xml b/bt5/erp5_ace_editor/SkinTemplateItem/portal_skins/erp5_ace_editor/ace_editor_support.xml index 06f5128988..7671fb77c8 100644 --- a/bt5/erp5_ace_editor/SkinTemplateItem/portal_skins/erp5_ace_editor/ace_editor_support.xml +++ b/bt5/erp5_ace_editor/SkinTemplateItem/portal_skins/erp5_ace_editor/ace_editor_support.xml @@ -218,6 +218,8 @@ \n var PythonMode = require(\'ace/mode/python\').Mode;\n ace_editor.getSession().setMode(new PythonMode());\n + ace_editor.getSession().setUseSoftTabs(true);\n + ace_editor.getSession().setTabSize(2);\n \n var textarea = $(\'#${id}\');\n ace_editor.getSession().on(\'change\', function() {\n diff --git a/bt5/erp5_ace_editor/bt/change_log b/bt5/erp5_ace_editor/bt/change_log index ceed6d9926..c2fcbe3b66 100644 --- a/bt5/erp5_ace_editor/bt/change_log +++ b/bt5/erp5_ace_editor/bt/change_log @@ -1,3 +1,6 @@ +2013-07-09 arnaud.fontaine +* ZODB Components: Follow ERP5 Python indentation style in Ace editor. + 2013-07-09 arnaud.fontaine * ZODB Components: inner{Weight,Width} is not applicable to window document (from jQuery API). diff --git a/bt5/erp5_ace_editor/bt/revision b/bt5/erp5_ace_editor/bt/revision index 301160a930..f11c82a4cb 100644 --- a/bt5/erp5_ace_editor/bt/revision +++ b/bt5/erp5_ace_editor/bt/revision @@ -1 +1 @@ -8 \ No newline at end of file +9 \ No newline at end of file -- 2.30.9