}
/* Creates and returns a new pivot table with the given TITLE and a single cell
- with the given CONTENT.
-
- This is really just for error handling. */
+ with the given CONTENT. */
struct pivot_table *
pivot_table_create_for_text (struct pivot_value *title,
struct pivot_value *content)
table->axes[PIVOT_AXIS_COLUMN].label_depth = 1;
pivot_axis_assign_label_depth (table, PIVOT_AXIS_LAYER, false);
}
-\f
-/* Footnotes. */
+void
+pivot_table_submit (struct pivot_table *pt)
+{
+ pivot_table_assign_label_depth (CONST_CAST (struct pivot_table *, pt));
+ table_item_submit (table_item_create (pt));
\f
-\f
-static void
+ static void
indent (int indentation)
{
for (int i = 0; i < indentation * 2; i++)
font_style_uninit (value->font_style);
free (value->font_style);
free (value->cell_style);
- for (size_t i = 0; i < value->n_footnotes; i++)
- pivot_footnote_destroy (value->footnotes[i]);
+ /* Do not free the elements of footnotes because VALUE does not own
+ them. */
free (value->footnotes);
switch (value->type)