Add table bbox attribute (#193)

pull/2/head
Vinayak Mehta 2018-11-04 01:33:41 +05:30 committed by GitHub
parent a60ce38d4d
commit defaead679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -362,6 +362,7 @@ class Lattice(BaseParser):
self.table_bbox.keys(), key=lambda x: x[1], reverse=True)):
cols, rows, v_s, h_s = self._generate_columns_and_rows(table_idx, tk)
table = self._generate_table(table_idx, cols, rows, v_s=v_s, h_s=h_s)
table._bbox = tk
_tables.append(table)
return _tables

View File

@ -361,6 +361,7 @@ class Stream(BaseParser):
self.table_bbox.keys(), key=lambda x: x[1], reverse=True)):
cols, rows = self._generate_columns_and_rows(table_idx, tk)
table = self._generate_table(table_idx, cols, rows)
table._bbox = tk
_tables.append(table)
return _tables