From 351fe75ddfcd68912ee1961b20ca56205c626c40 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 31 Dec 2020 12:23:03 -0800 Subject: [PATCH] pivot-output: Fix drawing lines between dimensions within a heading. --- src/output/pivot-output.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/output/pivot-output.c b/src/output/pivot-output.c index 6f92f87c96..23b47c0d54 100644 --- a/src/output/pivot-output.c +++ b/src/output/pivot-output.c @@ -356,7 +356,19 @@ compose_headings (struct table *t, show_values, show_variables, false); } - if (dim_index > 1) + /* Draw the horizontal line between dimensions, e.g. the ===== line here: + + +-----------------------------------------------------+ __ + | bbbb | | + +-----------------+-----------------+-----------------+ |dim "bbbb" + | bbbb1 | bbbb2 | bbbb3 | _| + +=================+=================+=================+ __ + | aaaa | aaaa | aaaa | | + +-----+-----+-----+-----+-----+-----+-----+-----+-----+ |dim "aaaa" + |aaaa1|aaaa2|aaaa3|aaaa1|aaaa2|aaaa3|aaaa1|aaaa2|aaaa3| _| + +-----+-----+-----+-----+-----+-----+-----+-----+-----+ + */ + if (dim_index != a_axis->n_dimensions - 1) draw_line (t, borders, dim_col_horz, a, top_row, a_ofs, t->n[a] - 1); top_row += d->label_depth; -- 2.30.2