Changed: UL list style type depending on nested depth
This commit is contained in:
parent
03a821a9b9
commit
f38e5e8877
1 changed files with 16 additions and 1 deletions
|
@ -1917,7 +1917,12 @@ namespace NLGUI
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case HTML_UL:
|
case HTML_UL:
|
||||||
|
if (_UL.empty())
|
||||||
_UL.push_back(HTMLOListElement(1, "disc"));
|
_UL.push_back(HTMLOListElement(1, "disc"));
|
||||||
|
else if (_UL.size() == 1)
|
||||||
|
_UL.push_back(HTMLOListElement(1, "circle"));
|
||||||
|
else
|
||||||
|
_UL.push_back(HTMLOListElement(1, "square"));
|
||||||
// if LI is already present
|
// if LI is already present
|
||||||
_LI = _UL.size() > 1;
|
_LI = _UL.size() > 1;
|
||||||
_Indent += ULIndent;
|
_Indent += ULIndent;
|
||||||
|
@ -5512,6 +5517,16 @@ namespace NLGUI
|
||||||
// (ucchar)0x2219;
|
// (ucchar)0x2219;
|
||||||
ret = "\xe2\x88\x99 ";
|
ret = "\xe2\x88\x99 ";
|
||||||
}
|
}
|
||||||
|
else if (Type == "circle")
|
||||||
|
{
|
||||||
|
// (uchar)0x26AA;
|
||||||
|
ret = "\xe2\x9a\xaa ";
|
||||||
|
}
|
||||||
|
else if (Type == "square")
|
||||||
|
{
|
||||||
|
// (ucchar)0x25AA;
|
||||||
|
ret = "\xe2\x96\xaa ";
|
||||||
|
}
|
||||||
else if (Type == "a" || Type == "A")
|
else if (Type == "a" || Type == "A")
|
||||||
{
|
{
|
||||||
// @see toAlphabeticOrNumeric in WebKit
|
// @see toAlphabeticOrNumeric in WebKit
|
||||||
|
|
Loading…
Reference in a new issue