179 @param line line number of the issue (integer) |
179 @param line line number of the issue (integer) |
180 @param pos position inside line (integer) |
180 @param pos position inside line (integer) |
181 @return flag indicating an applied fix (boolean) and a message for |
181 @return flag indicating an applied fix (boolean) and a message for |
182 the fix (string) |
182 the fix (string) |
183 """ |
183 """ |
184 self.__source[line - 1] = re.sub(r'[\t ]*$', "", |
184 self.__source[line - 1] = re.sub(r'[\t ]+(\r?)$', r"\1", |
185 self.__source[line - 1]) |
185 self.__source[line - 1]) |
186 return (True, self.trUtf8("Whitespace stripped from end of line.")) |
186 return (True, self.trUtf8("Whitespace stripped from end of line.")) |
187 |
187 |
188 def __fixNewline(self, code, line, pos): |
188 def __fixNewline(self, code, line, pos): |
189 """ |
189 """ |