[bijiben] tomboyReader: cleanup: append html header at gstring initization



commit 4d7a444ce7bc9a69a09e9514c64b242172a5f1b6
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Wed Oct 2 22:17:23 2013 +0200

    tomboyReader: cleanup: append html header at gstring initization

 src/libbiji/deserializer/biji-tomboy-reader.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/libbiji/deserializer/biji-tomboy-reader.c b/src/libbiji/deserializer/biji-tomboy-reader.c
index a17c021..eb5da2d 100644
--- a/src/libbiji/deserializer/biji-tomboy-reader.c
+++ b/src/libbiji/deserializer/biji-tomboy-reader.c
@@ -215,8 +215,6 @@ process_tomboy_xml_content (BijiTomboyReader *self, gchar *text)
   gint ret;
 
   priv = self->priv;
-  g_string_append (priv->html, "<html xmlns=\"http://www.w3.org/1999/xhtml\";><body>");
-
   priv->inner = xmlReaderForMemory (text,
                                     strlen (text),
                                     "", "UTF-8", 0);
@@ -461,7 +459,7 @@ biji_tomboy_reader_init (BijiTomboyReader *self)
              (self, BIJI_TYPE_TOMBOY_READER, BijiTomboyReaderPrivate);
 
   priv->raw_text = g_string_new ("");
-  priv->html = g_string_new ("");
+  priv->html = g_string_new ("<html xmlns=\"http://www.w3.org/1999/xhtml\";><body>");
 
   priv->set = biji_info_set_new ();
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]