equal
deleted
inserted
replaced
314 block['header'] = False |
314 block['header'] = False |
315 div = block['lines'][0] |
315 div = block['lines'][0] |
316 |
316 |
317 # column markers are ASCII so we can calculate column |
317 # column markers are ASCII so we can calculate column |
318 # position in bytes |
318 # position in bytes |
319 columns = [x for x in xrange(len(div)) |
319 columns = [x for x in pycompat.xrange(len(div)) |
320 if div[x:x + 1] == '=' and (x == 0 or |
320 if div[x:x + 1] == '=' and (x == 0 or |
321 div[x - 1:x] == ' ')] |
321 div[x - 1:x] == ' ')] |
322 rows = [] |
322 rows = [] |
323 for l in block['lines'][1:-1]: |
323 for l in block['lines'][1:-1]: |
324 if l == div: |
324 if l == div: |
683 llen = len(lastparents) |
683 llen = len(lastparents) |
684 plen = len(parents) |
684 plen = len(parents) |
685 if llen and llen != plen: |
685 if llen and llen != plen: |
686 collapse = False |
686 collapse = False |
687 s = [] |
687 s = [] |
688 for j in xrange(3, plen - 1): |
688 for j in pycompat.xrange(3, plen - 1): |
689 parent = parents[j] |
689 parent = parents[j] |
690 if (j >= llen or |
690 if (j >= llen or |
691 lastparents[j] != parent): |
691 lastparents[j] != parent): |
692 s.append(len(blocks)) |
692 s.append(len(blocks)) |
693 sec = sections[parent][2] |
693 sec = sections[parent][2] |