- if (getc (stream) != EOF)
- error (1, 0, "unread data at end of input");
+ for (i = 0; (content = strsep (&pos, "#")) != NULL; i++)
+ if (!i)
+ {
+ table_joint_text (tab, c, r, c + cs - 1, r + rs - 1, 0,
+ content);
+ table_add_style (tab, c, r, style);
+ }
+ else
+ {
+ char marker[2] = { 'a' + n_footnotes, '\0' };
+ struct footnote *f = table_create_footnote (
+ tab, n_footnotes, content, marker,
+ area_style_clone (tab->container, &left_style));
+ table_add_footnote (tab, c, r, f);
+ n_footnotes++;
+ }
+ }