From de03eaac4eaa1d42d7196471f22c526223d225a0 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 2 Sep 2014 22:34:59 -0700 Subject: [PATCH] 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". --- src/output/odt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2