1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-05 22:00:54 +00:00

Better looking symbols for LI elements.

This commit is contained in:
Witold Filipczyk 2010-08-11 21:22:21 +02:00 committed by Witold Filipczyk
parent 885ffc9d40
commit 79340fa4ac
2 changed files with 29 additions and 4 deletions

View File

@ -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;

25
test/li.html Normal file
View File

@ -0,0 +1,25 @@
<html>
<body>
<p>circle
<ul type="circle">
<li>circle 1</li>
<li>circle 2</li>
<li>circle 3</li>
</ul>
</p>
<p>square
<ul type="square">
<li>square 1</li>
<li>square 2</li>
<li>square 3</li>
</ul>
</p>
<p>normal
<ul>
<li>disc 1</li>
<li>disc 2</li>
<li>disc 3</li>
</ul>
</p>
</body>
</html>