render: Update style of footnote rendering.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 26 Nov 2018 04:43:22 +0000 (20:43 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 25 Dec 2018 19:51:21 +0000 (11:51 -0800)
src/output/render.c
tests/output/render.at

index 84ef8c1d352597097ae0f5ecbae65f3404ac6f85..9a9370ad175997309f015172ecd476cc389eba57 100644 (file)
@@ -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);
index d5e971757af7d3fe982c95b95ba8dea68225ee98..d60c427a38542d295dbf641f24963d187145c5e9 100644 (file)
@@ -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