Show More
@@ -2505,9 +2505,8 b' def difflabel(func, *args, **kw):' | |||
|
2505 | 2505 | matches = {} |
|
2506 | 2506 | if inlinecolor: |
|
2507 | 2507 | matches = _findmatches(lines) |
|
2508 | linecount = len(lines) | |
|
2508 | 2509 | for i, line in enumerate(lines): |
|
2509 | if i != 0: | |
|
2510 | yield ('\n', '') | |
|
2511 | 2510 | if head: |
|
2512 | 2511 | if line.startswith('@'): |
|
2513 | 2512 | head = False |
@@ -2546,6 +2545,8 b' def difflabel(func, *args, **kw):' | |||
|
2546 | 2545 | yield (line, '') |
|
2547 | 2546 | if line != stripline: |
|
2548 | 2547 | yield (line[len(stripline):], 'diff.trailingwhitespace') |
|
2548 | if i + 1 < linecount: | |
|
2549 | yield ('\n', '') | |
|
2549 | 2550 | |
|
2550 | 2551 | def _findmatches(slist): |
|
2551 | 2552 | '''Look for insertion matches to deletion and returns a dict of |
General Comments 0
You need to be logged in to leave comments.
Login now