--- trac/mimeview/patch.py.orig 2006-08-26 20:35:09.000000000 +0900 +++ trac/mimeview/patch.py 2006-09-07 19:26:44.464991768 +0900 @@ -155,7 +155,7 @@ command, line = line[0], line[1:] # Make a new block? if (command == ' ') != last_type: - last_type = command == ' ' + last_type = command == ' ' or command == '\\' blocks.append({'type': last_type and 'unmod' or 'mod', 'base.offset': fromline - 1, 'base.lines': [], @@ -172,6 +172,11 @@ elif command == '-': blocks[-1]['base.lines'].append(line) fromline += 1 + elif command == '\\': + blocks[-1]['changed.lines'].append('\\' + line) + blocks[-1]['base.lines'].append('\\' + line) + fromline += 1 + toline += 1 else: return None line = lines.next()