[Commits] [SCM] claws branch, master, updated. 3.13.2-145-g1805e09

charles at claws-mail.org charles at claws-mail.org
Thu Jun 2 11:05:54 CEST 2016


The branch, master has been updated
       via  1805e0954742603e3c89ccb8c0a0ce5466ae8ac4 (commit)
      from  3b6d06fd7aaa8627d2fc909e6387dca6c35f4dbd (commit)

Summary of changes:
 src/html.c |    4 ++++
 1 file changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit 1805e0954742603e3c89ccb8c0a0ce5466ae8ac4
Author: Charles Lehner <charles at claws-mail.org>
Date:   Wed Jun 1 20:37:02 2016 -0400

    Indicate list items in html

diff --git a/src/html.c b/src/html.c
index 72df946..a9b638e 100644
--- a/src/html.c
+++ b/src/html.c
@@ -28,6 +28,7 @@
 
 #define SC_HTMLBUFSIZE	8192
 #define HR_STR		"------------------------------------------------"
+#define LI_STR		"- "
 
 typedef struct _SC_HTMLSymbol	SC_HTMLSymbol;
 
@@ -695,6 +696,9 @@ static SC_HTMLState sc_html_parse_tag(SC_HTMLParser *parser)
 			parser->space = FALSE;
 			sc_html_append_char(parser, '\n');
 		}
+		if (!strcmp(tag->name, "li")) {
+			sc_html_append_str(parser, LI_STR, -1);
+		}
 		parser->state = SC_HTML_NORMAL;
 	} else if (!strcmp(tag->name, "/table") ||
 		   (tag->name[0] == '/' &&

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list