##// END OF EJS Templates
webutil: some %d instead of %s love on ints...
Augie Fackler -
r36728:a2fa5141 default
parent child Browse files
Show More
@@ -516,16 +516,18 b' def compare(tmpl, context, leftlines, ri'
516 '''Generator function that provides side-by-side comparison data.'''
516 '''Generator function that provides side-by-side comparison data.'''
517
517
518 def compline(type, leftlineno, leftline, rightlineno, rightline):
518 def compline(type, leftlineno, leftline, rightlineno, rightline):
519 lineid = leftlineno and ("l%s" % leftlineno) or ''
519 lineid = leftlineno and ("l%d" % leftlineno) or ''
520 lineid += rightlineno and ("r%s" % rightlineno) or ''
520 lineid += rightlineno and ("r%d" % rightlineno) or ''
521 llno = '%d' % leftlineno if leftlineno else ''
522 rlno = '%d' % rightlineno if rightlineno else ''
521 return tmpl('comparisonline',
523 return tmpl('comparisonline',
522 type=type,
524 type=type,
523 lineid=lineid,
525 lineid=lineid,
524 leftlineno=leftlineno,
526 leftlineno=leftlineno,
525 leftlinenumber="% 6s" % (leftlineno or ''),
527 leftlinenumber="% 6s" % llno,
526 leftline=leftline or '',
528 leftline=leftline or '',
527 rightlineno=rightlineno,
529 rightlineno=rightlineno,
528 rightlinenumber="% 6s" % (rightlineno or ''),
530 rightlinenumber="% 6s" % rlno,
529 rightline=rightline or '')
531 rightline=rightline or '')
530
532
531 def getblock(opcodes):
533 def getblock(opcodes):
General Comments 0
You need to be logged in to leave comments. Login now