Closed kevana closed 9 years ago
Example file contents:
a,b,c d,e f,g,h
Traceback:
Traceback (most recent call last): File "./csvtomd.py", line 126, in <module> print(md_table(csv, padding=args.padding)) File "./csvtomd.py", line 79, in md_table row[cell_num] = pad_to(cell, col_sizes[cell_num]) IndexError: list index out of range
Yep. We can fix this in two ways:
I like the idea of padding rows to make sure we work even if the table is kinda malformed.
This has been taken care of by #4.
Example file contents:
Traceback: