From d1eb7fd489940f63f497b58f46bc502a844e6c5f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 19 Oct 2019 05:41:58 +0000 Subject: [PATCH] render: Change style for footnote blocks. This better matches the style output by SPSS. --- src/output/render.c | 12 ++++-------- tests/output/render.at | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/output/render.c b/src/output/render.c index 83641c2062..410fd4c596 100644 --- a/src/output/render.c +++ b/src/output/render.c @@ -1514,17 +1514,13 @@ add_footnote_page (struct render_pager *p, const struct table_item *item) if (!n_footnotes) return; - struct tab_table *t = tab_create (2, n_footnotes); - + struct tab_table *t = tab_create (1, n_footnotes); for (size_t i = 0; i < n_footnotes; i++) { - tab_text_format (t, 0, i, TAB_LEFT, "%s.", f[i]->marker); - tab_text (t, 1, i, TAB_LEFT, f[i]->content); + tab_text_format (t, 0, i, TAB_LEFT, "%s. %s", + f[i]->marker, f[i]->content); if (f[i]->style) - { - tab_add_style (t, 0, i, f[i]->style); - tab_add_style (t, 1, i, f[i]->style); - } + tab_add_style (t, 0, i, f[i]->style); } render_pager_add_table (p, &t->table, 0); diff --git a/tests/output/render.at b/tests/output/render.at index e9e1a4780b..8172e33571 100644 --- a/tests/output/render.at +++ b/tests/output/render.at @@ -249,7 +249,7 @@ AT_CHECK([render-test --csv input], [0], +----------+------+ a. Approximation. b. This is a very long footnote that will have to wrap from one line to the - next. Let's see if the rendering engine does it acceptably. +next. Let's see if the rendering engine does it acceptably. c. One d. Two e. Three -- 2.30.2