[goffice] GOFormat: use a old format for odf export of invisible characters.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] GOFormat: use a old format for odf export of invisible characters.
- Date: Mon, 21 Apr 2014 01:12:22 +0000 (UTC)
commit 582c3de3d4d414906e48659ed41fc500f56458a0
Author: Morten Welinder <terra gnome org>
Date: Sun Apr 20 21:11:27 2014 -0400
GOFormat: use a old format for odf export of invisible characters.
goffice/utils/go-format.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index 8ec2ed5..de75c99 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -8501,10 +8501,16 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
gsf_xml_out_add_cstr (xout, NULL, accum->str);
g_string_truncate (accum, 0);
+ /*
+ * Readers that do not understand gnm:invisible will
+ * see this space. Readers that do understand the tag
+ * will reach back and replace this space.
+ */
+ gsf_xml_out_add_cstr (xout, NULL, " ");
+
gsf_xml_out_start_element (xout, GNMSTYLE "invisible");
gsf_xml_out_add_cstr (xout, GNMSTYLE "char", text);
- odf_add_bool (xout, OFFICE "process-content", 1);
- gsf_xml_out_add_cstr (xout, NULL, " ");
+ odf_add_bool (xout, OFFICE "process-content", TRUE);
gsf_xml_out_end_element (xout); /* </gnm:invisible> */
g_free (text);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]