import sublime, sublime_plugin

class TrimTrailingWhiteSpace(sublime_plugin.EventListener):
    def on_pre_save(self, view):
        if view.settings().get("trim_trailing_white_space_on_save") == True:
            trailing_white_space = view.find_all("[\t ]+$")
            trailing_white_space.reverse()
            edit = view.begin_edit()
            for r in trailing_white_space:
                view.erase(edit, r)
            view.end_edit(edit)

3135cfc2ea8415e83806d7f6f5cab91e7e8fe092
<mask token>

<mask token>


class TrimTrailingWhiteSpace(sublime_plugin.EventListener):
    <mask token>

<mask token>


class TrimTrailingWhiteSpace(sublime_plugin.EventListener):

    def on_pre_save(self, view):
        if view.settings().get('trim_trailing_white_space_on_save') == True:
            trailing_white_space = view.find_all('[\t ]+$')
            trailing_white_space.reverse()
            edit = view.begin_edit()
            for r in trailing_white_space:
                view.erase(edit, r)
            view.end_edit(edit)

import sublime, sublime_plugin


class TrimTrailingWhiteSpace(sublime_plugin.EventListener):

    def on_pre_save(self, view):
        if view.settings().get('trim_trailing_white_space_on_save') == True:
            trailing_white_space = view.find_all('[\t ]+$')
            trailing_white_space.reverse()
            edit = view.begin_edit()
            for r in trailing_white_space:
                view.erase(edit, r)
            view.end_edit(edit)

import sublime, sublime_plugin

class TrimTrailingWhiteSpace(sublime_plugin.EventListener):
    def on_pre_save(self, view):
        if view.settings().get("trim_trailing_white_space_on_save") == True:
            trailing_white_space = view.find_all("[\t ]+$")
            trailing_white_space.reverse()
            edit = view.begin_edit()
            for r in trailing_white_space:
                view.erase(edit, r)
            view.end_edit(edit)
