'Remove trailing spaces'

def remove_trailing_spaces(self, index=None):

    if (index is None):
        index = self.get_stack_index()
    finfo = self.data[index]
    finfo.editor.remove_trailing_spaces()
