[bijiben] Deserializer: fix end of lines into raw text for list items
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] Deserializer: fix end of lines into raw text for list items
- Date: Sat, 24 Nov 2012 21:41:04 +0000 (UTC)
commit 90166245fefd24ff6b8af7754896cacc11dc1552
Author: Pierre-Yves Luyten <py luyten fr>
Date: Sat Nov 24 22:40:07 2012 +0100
Deserializer: fix end of lines into raw text for list items
Both bullets and lists will now produce lines break for notes icon
src/libbiji/deserializer/biji-lazy-deserializer.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libbiji/deserializer/biji-lazy-deserializer.c b/src/libbiji/deserializer/biji-lazy-deserializer.c
index 7bc922e..69ee620 100644
--- a/src/libbiji/deserializer/biji-lazy-deserializer.c
+++ b/src/libbiji/deserializer/biji-lazy-deserializer.c
@@ -345,7 +345,9 @@ process_bijiben_start_elem (BijiLazyDeserializer *self)
priv->html = g_string_append (priv->html, "<ol>");
if (g_strcmp0 (element_name, "li")==0)
+ {
priv->html = g_string_append (priv->html, "<li>");
+ }
/* Links: Images */
@@ -436,7 +438,10 @@ process_bijiben_end_elem (BijiLazyDeserializer *self)
priv->html = g_string_append (priv->html, "</ol>");
if (g_strcmp0 (element_name, "li")==0)
+ {
priv->html = g_string_append (priv->html, "</li>");
+ priv->raw_text = g_string_append (priv->raw_text, "\n");
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]