odt: Use text:outline-level instead of text:level inside text:h.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 3 Sep 2014 05:34:59 +0000 (22:34 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 4 Sep 2014 04:03:41 +0000 (21:03 -0700)
text:level is for numbered lists, text:outline-level is for headings.

Found by validating sample output against ODT Relax-NG schema with "jing".

src/output/odt.c

index 24da4522c0799b15d38ed90ca003ca538227994d..1b637f20b7695d235ed872ee73ae833628efcad4 100644 (file)
@@ -421,8 +421,8 @@ odt_submit_table (struct odt_driver *odt, struct table_item *item)
   if (caption != NULL)
     {
       xmlTextWriterStartElement (odt->content_wtr, _xml("text:h"));
-      xmlTextWriterWriteFormatAttribute (odt->content_wtr, _xml("text:level"),
-                                         "%d", 2);
+      xmlTextWriterWriteFormatAttribute (odt->content_wtr,
+                                         _xml("text:outline-level"), "%d", 2);
       xmlTextWriterWriteString (odt->content_wtr,
                                 _xml (table_item_get_caption (item)) );
       xmlTextWriterEndElement (odt->content_wtr);