I hesitate to share these scripts because I can't really vouch for them being particularly cleaned up, but here they are anyway:
I'm pretty sure I started working from some scripts at Dr. Drang's site:
Anyway, there are 4 scripts:
-
tabs2table.pl - takes tab delimited data and converts it to a markdown table
-
spaces2tabs-table.pl - Takes columns separated by 2 or more spaces and/or tabs and converts to a single tab - this was some cleanup script I must have written and could easily be just a find and replace.
- Reformat table.py - Cleans up a markdown table (like from
tabs2table.pl) and justifies the columns. I'm pretty sure I modified this slightly from the one from leancrew to change the default column alignment.
I do have a similar script for doing the same with Latex tables, but it's on my work computer... I could fetch them if there is interest.
Tim