mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Better looking symbols for LI elements.
This commit is contained in:
parent
885ffc9d40
commit
79340fa4ac
@ -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
25
test/li.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user