pivot-output: Fix typo in comment.
[pspp] / src / output / tex.c
index bd1bbc0aba8b954970d1bf8766aff61e38f742a0..b6064097495b9006684f4e88764aeb4dc429bed0 100644 (file)
@@ -378,8 +378,8 @@ tex_submit (struct output_driver *driver,
 
 static void
 tex_put_footnote_markers (struct tex_driver *tex,
-                           const struct footnote **footnotes,
-                           size_t n_footnotes)
+                          struct footnote **footnotes,
+                          size_t n_footnotes)
 {
   if (n_footnotes > 0)
     shipout (&tex->token_list, "$^{");
@@ -394,11 +394,10 @@ tex_put_footnote_markers (struct tex_driver *tex,
 }
 
 static void
-tex_put_table_item_text (struct tex_driver *tex,
-                          const struct table_item_text *text)
+tex_put_table_cell (struct tex_driver *tex, const struct table_cell *cell)
 {
-  tex_escape_string (tex, text->content, false);
-  tex_put_footnote_markers (tex, text->footnotes, text->n_footnotes);
+  tex_escape_string (tex, cell->text, false);
+  tex_put_footnote_markers (tex, cell->footnotes, cell->n_footnotes);
 }
 
 static void
@@ -411,24 +410,24 @@ tex_output_table (struct tex_driver *tex, const struct table_item *item)
 
   shipout (&tex->token_list, "\n{\\parindent=0pt\n");
 
-  const struct table_item_text *caption = table_item_get_caption (item);
+  const struct table_cell *caption = table_item_get_caption (item);
   if (caption)
     {
       shipout (&tex->token_list, "{\\sl ");
-      tex_escape_string (tex, caption->content, false);
+      tex_escape_string (tex, caption->text, false);
       shipout (&tex->token_list, "}\n\n");
     }
-  const struct footnote **f;
+  struct footnote **f;
   size_t n_footnotes = table_collect_footnotes (item, &f);
 
-  const struct table_item_text *title = table_item_get_title (item);
+  const struct table_cell *title = table_item_get_title (item);
   const struct table_item_layers *layers = table_item_get_layers (item);
   if (title || layers)
     {
       if (title)
         {
           shipout (&tex->token_list, "{\\bf ");
-          tex_put_table_item_text (tex, title);
+          tex_put_table_cell (tex, title);
           shipout (&tex->token_list, "}");
         }
       if (layers)