Minor Stream fix

pull/2/head
Vinayak Mehta 2016-09-27 17:27:34 +05:30
parent 79afb45e2e
commit 75c7deffaa
2 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ class Stream:
if len(self.ytol) == 1 and self.ytol[0] == 2: if len(self.ytol) == 1 and self.ytol[0] == 2:
self.ytol = self.ytol * len(table_bbox) self.ytol = self.ytol * len(table_bbox)
if len(self.mtol) == 1 and self.mtol[0] == 2: if len(self.mtol) == 1 and self.mtol[0] == 0:
self.mtol = self.mtol * len(table_bbox) self.mtol = self.mtol * len(table_bbox)
page = {} page = {}

View File

@ -404,7 +404,7 @@ if __name__ == '__main__':
try: try:
tarea = args['--tarea'] if args['--tarea'] else None tarea = args['--tarea'] if args['--tarea'] else None
columns = args['--columns'] if args['--columns'] else None columns = args['--columns'] if args['--columns'] else None
if args['--ncols']: if args['--ncols'] and args['--ncols'] != ['-1']:
ncolumns = [int(nc) for nc in args['--ncols']] ncolumns = [int(nc) for nc in args['--ncols']]
else: else:
ncolumns = None ncolumns = None