output: Implement styling for titles and captions.
[pspp] / src / output / table-item.c
index d2d3ea54abc79bfe287ad72c8e2fe691c27241d3..6d4927326c3e6ea7f89e13de81c0d730b9b56fce 100644 (file)
@@ -35,7 +35,8 @@ table_item_text_create (const char *content)
     return NULL;
 
   struct table_item_text *text = xmalloc (sizeof *text);
-  *text = (struct table_item_text) { .content = xstrdup (content) };
+  *text = (struct table_item_text) { .content = xstrdup (content),
+                                     .halign = TAB_LEFT };
   return text;
 }
 
@@ -51,7 +52,8 @@ table_item_text_clone (const struct table_item_text *old)
     .footnotes = xmemdup (old->footnotes,
                           old->n_footnotes * sizeof *old->footnotes),
     .n_footnotes = old->n_footnotes,
-    .style = cell_style_clone (old->style),
+    .style = cell_style_clone (NULL, old->style),
+    .halign = old->halign,
   };
   return new;
 }