Commit 5a96482d authored by Vincent Pelletier's avatar Vincent Pelletier

fixup! Simplify code a bit.

Tolerate empty tables.
parent a84bd0b6
......@@ -498,7 +498,7 @@ class OOoParser(Implicit):
"""
Get table dimension as dictionnary contain both height and width
"""
return { 'width' : max(len(x) for x in table)
return { 'width' : max(len(x) for x in table or [[]])
, 'height': len(table)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment