Skip to content

Commit

Permalink
Forced elems to be list
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoo authored and lukehsiao committed Dec 22, 2018
1 parent ed1e97e commit e630f34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdftotree/utils/pdf/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def __init__(self, elems):
"""
Constructor
"""
if not isinstance(elems, list):
elems = [elems]
self.elems = elems
self.sum_elem_bbox = 0
for elem in elems:
Expand Down

0 comments on commit e630f34

Please sign in to comment.