Fix the table using MediaWiki formatting and this sed script: sed -e 's/^||/|/' -e 's/||$//' -e 's/||/ ||/g' -e 's/^$/|-/'