Fixed: Wrong DD indent in nested list when tag is not closed
This commit is contained in:
parent
2c5a5d0376
commit
44458e024c
1 changed files with 9 additions and 5 deletions
|
@ -2273,6 +2273,9 @@ namespace NLGUI
|
||||||
break;
|
break;
|
||||||
case HTML_DD:
|
case HTML_DD:
|
||||||
if (!_DL.empty())
|
if (!_DL.empty())
|
||||||
|
{
|
||||||
|
// parser will process two DD in a row as nested when first DD is not closed
|
||||||
|
if (_DL.back().DD)
|
||||||
{
|
{
|
||||||
if (_Indent > ULIndent)
|
if (_Indent > ULIndent)
|
||||||
_Indent = _Indent - ULIndent;
|
_Indent = _Indent - ULIndent;
|
||||||
|
@ -2281,6 +2284,7 @@ namespace NLGUI
|
||||||
|
|
||||||
_DL.back().DD = false;
|
_DL.back().DD = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case HTML_SPAN:
|
case HTML_SPAN:
|
||||||
popIfNotEmpty (_FontSize);
|
popIfNotEmpty (_FontSize);
|
||||||
|
|
Loading…
Reference in a new issue