Bug introduced in 9 or earlier and persisting through 11.3
I would like to understand why the following code produces such a different result (Mathematica 9, Win7). Is this a bug? Is there a way to avoid this line height problem?
Grid[
{{"a", "b", "c", "d"},
{"L1\nL2\nL3", "e", SpanFromLeft, "f"},
{SpanFromAbove, "g", SpanFromLeft, "h"},
{SpanFromAbove, "i", SpanFromLeft, "j"},
{SpanFromAbove, "k", SpanFromLeft, "l"}}, Dividers -> All]
Grid[
{{"a", "b", "c", "d"},
{"L1\nL2\nL3", "e", "m", "f"},
{SpanFromAbove, "g", SpanFromLeft, "h"},
{SpanFromAbove, "i", SpanFromLeft, "j"},
{SpanFromAbove, "k", SpanFromLeft, "l"}}, Dividers -> All]
UPDATE:
Maybe I oversimplified my need making the question difficult to understand. Here is a more practical example of the problem:
Grid[
{{"", SpanFromLeft, "simple\nmodel", "improved\nmodel"},
{"Test\nSim\nParams", "param1 =", 1, SpanFromLeft},
{SpanFromAbove, "param2 =", 2, 3},
{SpanFromAbove, "param3 =", 4, 5},
{SpanFromAbove, "param4 =", 6, 7}}, Dividers -> All]
SpanFromLeft
in the second row should not triggerSpanFromAbove
, there is no apologize for such nasty behaviour. In my opinion it's a bug. $\endgroup$