output: Add support for Pango markup of fonts and styles.
[pspp] / src / output / odt.c
index 18827a600e6f0135e8d5d3c0c3469b1a20b869c7..f0143515e0aac73f6a18aff018901ecc2e416a9a 100644 (file)
@@ -530,7 +530,16 @@ write_table (struct odt_driver *odt, const struct table_item *item)
                   else
                     xmlTextWriterWriteAttribute (odt->content_wtr, _xml("text:style-name"), _xml("Table_20_Contents"));
 
-                  write_xml_with_line_breaks (odt, contents->text);
+                  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]);