# TableHeading Lines Do Not Show Up

For a list list = {{"a", "b", "c"}, {"d", "e"}}; Table heading lines do not show up

TableForm[list, TableHeadings -> Automatic]


But it works if the list list = {{"a", "b", "c"}, {"d", "e", "f"}};

TableForm[list, TableHeadings -> Automatic]


It seems the lines appear only for rectangular list. Is this a bug or i am missing something? I use v9.0.1 Thank you.

-
I think Mathematica calls these "ragged tables", and doesn't draw the lines: "Arrays in which all sublists at a particular level are not of the same length display as ragged tables." –  cormullion Oct 18 '13 at 15:02
As a workaround you can pad with "" list = {{"a", "b", "c"}, {"d", "e"}}; TableForm[PadRight[list, Automatic, ""], TableHeadings -> Automatic] –  ssch Oct 18 '13 at 15:05
@ssch please consider posting this as an answer :) –  Kuba Apr 27 '14 at 12:51