text-item: Simplify text_item further to just hold a pivot_value.
[pspp] / src / output / journal.c
index 9cab78805177592a00b0ca92041ab6cf0fc99f92..f93ed0bc840d7e4c98e6ae636ca85bf4bc8d7d71 100644 (file)
@@ -109,7 +109,11 @@ journal_submit (struct output_driver *driver, const struct output_item *item)
       enum text_item_type type = text_item_get_type (text_item);
 
       if (type == TEXT_ITEM_SYNTAX)
-        journal_output (j, text_item_get_text (text_item));
+        {
+          char *text = text_item_get_plain_text (text_item);
+          journal_output (j, text);
+          free (text);
+        }
     }
   else if (is_message_item (item))
     {