Show More
@@ -514,7 +514,7 b' class ListTB(TBTools):' | |||
|
514 | 514 | Colors.lineno, lineno, Colors.Normal, |
|
515 | 515 | Colors.name, name, Colors.Normal) |
|
516 | 516 | if line: |
|
517 |
item = |
|
|
517 | item += ' %s\n' % line.strip() | |
|
518 | 518 | list.append(item) |
|
519 | 519 | # Emphasize the last entry |
|
520 | 520 | filename, lineno, name, line = extracted_list[-1] |
@@ -525,7 +525,7 b' class ListTB(TBTools):' | |||
|
525 | 525 | Colors.nameEm, name, Colors.normalEm, |
|
526 | 526 | Colors.Normal) |
|
527 | 527 | if line: |
|
528 |
item = |
|
|
528 | item += '%s %s%s\n' % (Colors.line, line.strip(), | |
|
529 | 529 | Colors.Normal) |
|
530 | 530 | list.append(item) |
|
531 | 531 | #from pprint import pformat; print 'LISTTB', pformat(list) # dbg |
@@ -564,7 +564,7 b' class ListTB(TBTools):' | |||
|
564 | 564 | if value.text is not None: |
|
565 | 565 | i = 0 |
|
566 | 566 | while i < len(value.text) and value.text[i].isspace(): |
|
567 |
i = |
|
|
567 | i += 1 | |
|
568 | 568 | list.append('%s %s%s\n' % (Colors.line, |
|
569 | 569 | value.text.strip(), |
|
570 | 570 | Colors.Normal)) |
@@ -572,9 +572,9 b' class ListTB(TBTools):' | |||
|
572 | 572 | s = ' ' |
|
573 | 573 | for c in value.text[i:value.offset-1]: |
|
574 | 574 | if c.isspace(): |
|
575 |
s = |
|
|
575 | s += c | |
|
576 | 576 | else: |
|
577 |
s = |
|
|
577 | s += ' ' | |
|
578 | 578 | list.append('%s%s^%s\n' % (Colors.caret, s, |
|
579 | 579 | Colors.Normal) ) |
|
580 | 580 |
General Comments 0
You need to be logged in to leave comments.
Login now