From 898d8431555f251c21bc13d68ec437fd43aed507 Mon Sep 17 00:00:00 2001 From: Sean Coyne Date: Fri, 18 Jul 2014 19:20:58 -0400 Subject: [PATCH] fix for indentation bug #128 --- coldfusion-plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coldfusion-plugin.py b/coldfusion-plugin.py index 9786682..bd07876 100644 --- a/coldfusion-plugin.py +++ b/coldfusion-plugin.py @@ -138,8 +138,11 @@ def run(self, edit): for temp in self.view.sel(): tag_name = dic.get_tag_name(self.view, temp.b) - indent = not s.get("auto_indent_on_close") or tag_name == "cfoutput" + #indent = not s.get("auto_indent_on_close") or tag_name == "cfoutput" + indent = not s.get("auto_indent_on_close") + if not indent: + #self.view.insert(edit,temp.b,"\n\t\n") self.view.insert(edit,temp.b,"\n\t\n") else: self.view.insert(edit, temp.b, "")