old_contents: """ExpandTabsOnSave SublimeText plugin."""
  import os
  
  import sublime
  import sublime_plugin
  
  
  class ExpandTabsOnSave(sublime_plugin.EventListener):
      """Expand tabs / spaces on file save."""
  
      def on_pre_save(self, view):
          """Run ST's 'expand_tabs' command when saving a file."""
          if view.settings().get('convert_tabspaces_on_save') == 1:
              if view.settings().get('translate_tabs_to_spaces') == 1:
                  view.window().run_command('expand_tabs')
              else:
                  view.window().run_command('unexpand_tabs')
              
  
  
new_contents: """ExpandTabsOnSave SublimeText plugin."""
  import os
  
  import sublime
  import sublime_plugin
  
  
  class ExpandTabsOnSave(sublime_plugin.EventListener):
      """Expand tabs / spaces on file save."""
  
      def on_pre_save(self, view):
          """Run ST's 'expand_tabs' command when saving a file."""
          if view.settings().get('convert_tabspaces_on_save') == 1:
              if view.settings().get('translate_tabs_to_spaces') == 1:
                  view.run_command('expand_tabs')
              else:
                  view.run_command('unexpand_tabs')
              
  
  
subject: Update ExpandTabsOnSave.py