def run(self, edit, trim_whitespace, ensure_newline):
        # make sure you trim trailing whitespace FIRST and THEN check for Newline
        if trim_whitespace:
            trailing_white_space = self.view.find_all("[\t ]+$")
            trailing_white_space.reverse()
            for r in trailing_white_space:
                self.view.erase(edit, r)
        if ensure_newline:
            if self.view.size() > 0 and self.view.substr(1 - self.view.size()) != '\n':
                self.view.insert(edit, self.view.size(), "\n")
dataset/ETHPy150Open grundprinzip/sublemacspro/jove.py/SbpTrimTrailingWhiteSpaceAndEnsureNewlineAtEofCommand.run/swapped operands of `-`