render: Change style for footnote blocks.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 19 Oct 2019 05:41:58 +0000 (05:41 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 29 Dec 2019 05:28:10 +0000 (05:28 +0000)
This better matches the style output by SPSS.

src/output/render.c
tests/output/render.at

index 83641c20622c56b798124142b47312c6ee301914..410fd4c5961762a32b69fcb99e037113686e325a 100644 (file)
@@ -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);
 
index e9e1a4780ba732ddb6a7e6d7abee59e06d6337c5..8172e33571826748d493f3cf2ea7e9819fbceec2 100644 (file)
@@ -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