Skip to content

Commit

Permalink
fix for indentation bug SublimeText#128
Browse files Browse the repository at this point in the history
  • Loading branch information
seancoyne committed Jul 18, 2014
1 parent 4d61227 commit 898d843
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coldfusion-plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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</" + tag_name + ">")
self.view.insert(edit,temp.b,"\n\t\n</" + tag_name + ">")
else:
self.view.insert(edit, temp.b, "</" + tag_name + ">")
Expand Down

0 comments on commit 898d843

Please sign in to comment.