From: Ben Pfaff Date: Wed, 3 Sep 2014 05:34:59 +0000 (-0700) Subject: odt: Use text:outline-level instead of text:level inside text:h. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=de03eaac4eaa1d42d7196471f22c526223d225a0 odt: Use text:outline-level instead of text:level inside text:h. text:level is for numbered lists, text:outline-level is for headings. Found by validating sample output against ODT Relax-NG schema with "jing". --- diff --git a/src/output/odt.c b/src/output/odt.c index 24da4522c0..1b637f20b7 100644 --- a/src/output/odt.c +++ b/src/output/odt.c @@ -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);