-static char *
-add_markers (const char *text, const struct table_cell *cell)
-{
- struct string s = DS_EMPTY_INITIALIZER;
- ds_put_cstr (&s, text);
- for (size_t i = 0; i < cell->n_subscripts; i++)
- ds_put_format (&s, "%c%s", i ? ',' : '_', cell->subscripts[i]);
- for (size_t i = 0; i < cell->n_footnotes; i++)
- ds_put_format (&s, "[%s]", cell->footnotes[i]->marker);
- return ds_steal_cstr (&s);
-}
-