From: Ben Pfaff Date: Mon, 26 Nov 2018 04:43:22 +0000 (-0800) Subject: render: Update style of footnote rendering. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=5fa3e4dfcb2e02de2c64690a12bcbb7efc321230 render: Update style of footnote rendering. --- diff --git a/src/output/render.c b/src/output/render.c index 84ef8c1d35..9a9370ad17 100644 --- a/src/output/render.c +++ b/src/output/render.c @@ -1386,8 +1386,7 @@ add_footnote_page (struct render_pager *p, const struct table_item *item) for (size_t i = 0; i < n_footnotes; i++) if (f[i]) { - tab_text (t, 0, i, TAB_LEFT, ""); - tab_add_footnote (t, 0, i, f[i]); + tab_text_format (t, 0, i, TAB_LEFT, "%s.", f[i]->marker); tab_text (t, 1, i, TAB_LEFT, f[i]->content); } render_pager_add_table (p, &t->table); diff --git a/tests/output/render.at b/tests/output/render.at index d5e971757a..d60c427a38 100644 --- a/tests/output/render.at +++ b/tests/output/render.at @@ -247,12 +247,12 @@ AT_CHECK([render-test --csv input], [0], | h+-+----+ |i[c][d][e]| klm| +----------+------+ -[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. -[c] One -[d] Two -[e] Three +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. +c. One +d. Two +e. Three ]]) AT_CHECK([cat render.csv], [0], [[abc[a],,"d