Skip to content

Commit

Permalink
Fix #215
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayak-mehta committed Dec 13, 2018
1 parent ff4d8ce commit 6913643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion camelot/parsers/lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ def _generate_table(self, table_idx, cols, rows, **kwargs):
table = table.set_span()

pos_errors = []
for direction in self.t_bbox:
# TODO: have a single list in place of two directional ones?
# sorted on x-coordinate based on reading order i.e. LTR or RTL
for direction in ['vertical', 'horizontal']:
for t in self.t_bbox[direction]:
indices, error = get_table_index(
table, t, direction, split_text=self.split_text,
Expand Down
5 changes: 4 additions & 1 deletion camelot/parsers/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,11 @@ def _generate_columns_and_rows(self, table_idx, tk):
def _generate_table(self, table_idx, cols, rows, **kwargs):
table = Table(cols, rows)
table = table.set_all_edges()

pos_errors = []
for direction in self.t_bbox:
# TODO: have a single list in place of two directional ones?
# sorted on x-coordinate based on reading order i.e. LTR or RTL
for direction in ['vertical', 'horizontal']:
for t in self.t_bbox[direction]:
indices, error = get_table_index(
table, t, direction, split_text=self.split_text,
Expand Down

0 comments on commit 6913643

Please sign in to comment.