##// END OF EJS Templates
minirst: look for column delimiters using slices instead of indicies...
Augie Fackler -
r32526:9d082839 default
parent child Browse files
Show More
@@ -315,7 +315,8 b' def findtables(blocks):'
315 # column markers are ASCII so we can calculate column
315 # column markers are ASCII so we can calculate column
316 # position in bytes
316 # position in bytes
317 columns = [x for x in xrange(len(div))
317 columns = [x for x in xrange(len(div))
318 if div[x] == '=' and (x == 0 or div[x - 1] == ' ')]
318 if div[x:x + 1] == '=' and (x == 0 or
319 div[x - 1:x] == ' ')]
319 rows = []
320 rows = []
320 for l in block['lines'][1:-1]:
321 for l in block['lines'][1:-1]:
321 if l == div:
322 if l == div:
General Comments 0
You need to be logged in to leave comments. Login now