From 3ffbc278e6bad8e4b83e28b5fda1a29d915e58c1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 22 Apr 2011 22:07:52 -0700 Subject: [PATCH] odt: Write command name in output both only before command, not after. --- src/output/odt.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/output/odt.c b/src/output/odt.c index 721e7c87..fdaa6f90 100644 --- a/src/output/odt.c +++ b/src/output/odt.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -501,8 +501,10 @@ odt_submit (struct output_driver *driver, odt_submit_table (odt, to_table_item (output_item)); else if (is_text_item (output_item)) { - /* XXX apply different styles based on text_item's type. */ - odt_output_text (odt, text_item_get_text (to_text_item (output_item))); + struct text_item *text_item = to_text_item (output_item); + + if (text_item_get_type (text_item) != TEXT_ITEM_COMMAND_CLOSE) + odt_output_text (odt, text_item_get_text (text_item)); } else if (is_message_item (output_item)) { -- 2.30.2