- for (i = 0; i < cell.n_contents; i++)
- {
- const struct cell_contents *contents = &cell.contents[i];
- int j;
-
- xmlTextWriterStartElement (odt->content_wtr, _xml("text:p"));
-
- if ( r < table_ht (tab) || c < table_hl (tab) )
- xmlTextWriterWriteAttribute (odt->content_wtr, _xml("text:style-name"), _xml("Table_20_Heading"));
- else
- xmlTextWriterWriteAttribute (odt->content_wtr, _xml("text:style-name"), _xml("Table_20_Contents"));
-
- if (contents->options & TAB_MARKUP)
- {
- /* XXX */
- char *s = output_get_text_from_markup (
- contents->text);
- write_xml_with_line_breaks (odt, s);
- free (s);
- }
- else
- write_xml_with_line_breaks (odt, contents->text);
-
- for (j = 0; j < contents->n_footnotes; j++)
- write_footnote (odt, contents->footnotes[j]);
-
- xmlTextWriterEndElement (odt->content_wtr); /* text:p */
- }
+ xmlTextWriterStartElement (odt->content_wtr, _xml("text:p"));
+
+ if (r < body->h[V][0] || c < body->h[H][0])
+ xmlTextWriterWriteAttribute (odt->content_wtr, _xml("text:style-name"), _xml("Table_20_Heading"));
+ else
+ xmlTextWriterWriteAttribute (odt->content_wtr, _xml("text:style-name"), _xml("Table_20_Contents"));
+
+ write_table_item_cell (odt, pt, &cell);
+
+ xmlTextWriterEndElement (odt->content_wtr); /* text:p */