Show More
@@ -516,16 +516,18 b' def compare(tmpl, context, leftlines, ri' | |||
|
516 | 516 | '''Generator function that provides side-by-side comparison data.''' |
|
517 | 517 | |
|
518 | 518 | def compline(type, leftlineno, leftline, rightlineno, rightline): |
|
519 |
lineid = leftlineno and ("l% |
|
|
520 |
lineid += rightlineno and ("r% |
|
|
519 | lineid = leftlineno and ("l%d" % leftlineno) or '' | |
|
520 | lineid += rightlineno and ("r%d" % rightlineno) or '' | |
|
521 | llno = '%d' % leftlineno if leftlineno else '' | |
|
522 | rlno = '%d' % rightlineno if rightlineno else '' | |
|
521 | 523 | return tmpl('comparisonline', |
|
522 | 524 | type=type, |
|
523 | 525 | lineid=lineid, |
|
524 | 526 | leftlineno=leftlineno, |
|
525 |
leftlinenumber="% 6s" % |
|
|
527 | leftlinenumber="% 6s" % llno, | |
|
526 | 528 | leftline=leftline or '', |
|
527 | 529 | rightlineno=rightlineno, |
|
528 |
rightlinenumber="% 6s" % |
|
|
530 | rightlinenumber="% 6s" % rlno, | |
|
529 | 531 | rightline=rightline or '') |
|
530 | 532 | |
|
531 | 533 | def getblock(opcodes): |
General Comments 0
You need to be logged in to leave comments.
Login now