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