mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 14:08:42 +00:00
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
|
@ -2274,12 +2274,16 @@ namespace NLGUI
|
|||
case HTML_DD:
|
||||
if (!_DL.empty())
|
||||
{
|
||||
if (_Indent > ULIndent)
|
||||
_Indent = _Indent - ULIndent;
|
||||
else
|
||||
_Indent = 0;
|
||||
// parser will process two DD in a row as nested when first DD is not closed
|
||||
if (_DL.back().DD)
|
||||
{
|
||||
if (_Indent > ULIndent)
|
||||
_Indent = _Indent - ULIndent;
|
||||
else
|
||||
_Indent = 0;
|
||||
|
||||
_DL.back().DD = false;
|
||||
_DL.back().DD = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case HTML_SPAN:
|
||||
|
|
Loading…
Reference in a new issue