return NULL;
struct table_item_text *text = xmalloc (sizeof *text);
- *text = (struct table_item_text) { .content = xstrdup (content),
- .halign = TAB_LEFT };
+ *text = (struct table_item_text) { .content = xstrdup (content) };
return text;
}
.footnotes = xmemdup (old->footnotes,
old->n_footnotes * sizeof *old->footnotes),
.n_footnotes = old->n_footnotes,
- .style = cell_style_clone (NULL, old->style),
- .halign = old->halign,
+ .style = area_style_clone (NULL, old->style),
};
return new;
}
{
free (text->content);
free (text->footnotes);
- cell_style_free (text->style);
+ area_style_free (text->style);
free (text);
}
}
const struct output_item_class table_item_class =
{
+ "table",
table_item_destroy,
};