49 if len(lines) > 1: |
49 if len(lines) > 1: |
50 # only show the first non-empty line; |
50 # only show the first non-empty line; |
51 # indicate skipped lines by <...> at the |
51 # indicate skipped lines by <...> at the |
52 # beginning and/or end |
52 # beginning and/or end |
53 index = 0 |
53 index = 0 |
54 while index < len(lines) and lines[index] == "": |
54 while index < len(lines) - 1 and lines[index] == "": |
55 index += 1 |
55 index += 1 |
56 dvalue = "" |
56 dvalue = "" |
57 if index > 0: |
57 if index > 0: |
58 dvalue += "<...>" |
58 dvalue += "<...>" |
59 dvalue += lines[index] |
59 dvalue += lines[index] |