Fixed: Wrong DD indent in nested list when tag is not closed

This commit is contained in:
Nimetu 2016-01-07 01:00:48 +02:00
parent 2c5a5d0376
commit 44458e024c

View file

@ -2274,12 +2274,16 @@ namespace NLGUI
case HTML_DD: case HTML_DD:
if (!_DL.empty()) if (!_DL.empty())
{ {
if (_Indent > ULIndent) // parser will process two DD in a row as nested when first DD is not closed
_Indent = _Indent - ULIndent; if (_DL.back().DD)
else {
_Indent = 0; if (_Indent > ULIndent)
_Indent = _Indent - ULIndent;
else
_Indent = 0;
_DL.back().DD = false; _DL.back().DD = false;
}
} }
break; break;
case HTML_SPAN: case HTML_SPAN: