From 44458e024c007a31ec6fd6170b3e3a0233ce8128 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Thu, 7 Jan 2016 01:00:48 +0200 Subject: [PATCH] Fixed: Wrong DD indent in nested list when tag is not closed --- code/nel/src/gui/group_html.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index b4cadc3f4..fd124f478 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -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: