Reformat tab-separated data to tables