From 75c7deffaa3f5ac5a252c3189ce873ac7903d888 Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Tue, 27 Sep 2016 17:27:34 +0530 Subject: [PATCH] Minor Stream fix --- camelot/stream.py | 2 +- tools/camelot | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/camelot/stream.py b/camelot/stream.py index efc1eda..c4fa091 100644 --- a/camelot/stream.py +++ b/camelot/stream.py @@ -254,7 +254,7 @@ class Stream: if len(self.ytol) == 1 and self.ytol[0] == 2: 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) page = {} diff --git a/tools/camelot b/tools/camelot index 408a898..7ac1c8b 100755 --- a/tools/camelot +++ b/tools/camelot @@ -404,7 +404,7 @@ if __name__ == '__main__': try: tarea = args['--tarea'] if args['--tarea'] 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']] else: ncolumns = None