Skip to content

Commit

Permalink
docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
bubenkoff committed Dec 19, 2013
1 parent 32b75b2 commit 7bbf79e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ExpandTabsOnSave.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import sublime, sublime_plugin, os
"""ExpandTabsOnSave SublimeText plugin."""
import os

import sublime
import sublime_plugin


class ExpandTabsOnSave(sublime_plugin.EventListener):
"""Run ST's 'expand_tabs' command when saving a file."""
"""Expant tabs on file save."""

def on_pre_save(self, view):
"""Run ST's 'expand_tabs' command when saving a file."""
if view.settings().get('expand_tabs_on_save') == 1:
view.window().run_command('expand_tabs')

0 comments on commit 7bbf79e

Please sign in to comment.