commit 1805e0954742603e3c89ccb8c0a0ce5466ae8ac4
parent 3b6d06fd7aaa8627d2fc909e6387dca6c35f4dbd
Author: Charles Lehner <charles@claws-mail.org>
Date: Wed, 1 Jun 2016 20:37:02 -0400
Indicate list items in html
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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] == '/' &&