diff --git a/src/document/html/parser/general.c b/src/document/html/parser/general.c index 063ddcdb4..157a6b9d8 100644 --- a/src/document/html/parser/general.c +++ b/src/document/html/parser/general.c @@ -863,12 +863,12 @@ html_li(struct html_context *html_context, unsigned char *a, /*kill_html_stack_until(html_context, 0 "", "UL", "OL", NULL);*/ if (!par_format.list_number) { - unsigned char x[7] = "* "; int t = par_format.flags & P_LISTMASK; - if (t == P_O) x[0] = 'o'; - if (t == P_PLUS) x[0] = '+'; - put_chrs(html_context, x, 7); + if (t == P_O) put_chrs(html_context, "○", 7); /* o */ + else if (t == P_PLUS) put_chrs(html_context, "⎕", 7); /* + */ + else put_chrs(html_context, "•", 7); /* * */ + put_chrs(html_context, " ", 6); par_format.leftmargin += 2; par_format.align = ALIGN_LEFT; diff --git a/test/li.html b/test/li.html new file mode 100644 index 000000000..6e826b30c --- /dev/null +++ b/test/li.html @@ -0,0 +1,25 @@ + + +

circle +

+

+

square +

+

+

normal +

+

+ +