[gnumeric] write sub- and superscript attributes to html files
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] write sub- and superscript attributes to html files
- Date: Fri, 28 Oct 2011 03:07:33 +0000 (UTC)
commit 90317c6427c75c65857175e4a37bb0a4d1f13fcf
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Thu Oct 27 21:07:02 2011 -0600
write sub- and superscript attributes to html files
2011-10-27 Andreas J. Guelzow <aguelzow pyrshep ca>
* html.c (cb_html_attrs_as_string): write sub- and superscript
attributes
plugins/html/ChangeLog | 5 +++++
plugins/html/html.c | 13 +++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/plugins/html/ChangeLog b/plugins/html/ChangeLog
index 68858ed..f8c167a 100644
--- a/plugins/html/ChangeLog
+++ b/plugins/html/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-27 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * html.c (cb_html_attrs_as_string): write sub- and superscript
+ attributes
+
2011-09-13 Andreas J. Guelzow <aguelzow pyrshep ca>
* html_read.c (html_file_probe): adjust call to go_guess_encoding
diff --git a/plugins/html/html.c b/plugins/html/html.c
index 82a5a0c..ec24b75 100644
--- a/plugins/html/html.c
+++ b/plugins/html/html.c
@@ -211,6 +211,19 @@ cb_html_attrs_as_string (GsfOutput *output, PangoAttribute *a, html_version_t ve
/* ((c->blue & 0xff00) >> 8)); */
break;/* ignored */
default :
+ if (a->klass->type ==
+ go_pango_attr_subscript_get_type ()) {
+ if (((GOPangoAttrSubscript *)a)->val) {
+ gsf_output_puts (output, "<sub>");
+ closure = "</sub>";
+ }
+ } else if (a->klass->type ==
+ go_pango_attr_superscript_get_type ()) {
+ if (((GOPangoAttrSuperscript *)a)->val) {
+ gsf_output_puts (output, "<sup>");
+ closure = "</sup>";
+ }
+ }
break; /* ignored */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]