From e61c5937f3d39a1317970b3cf234ff68241a6d3e Mon Sep 17 00:00:00 2001 From: Nimetu Date: Tue, 21 May 2019 23:07:30 +0300 Subject: [PATCH] Changed: Better handling of br tag --HG-- branch : develop --- code/nel/src/gui/group_html.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 1d0468e3f..1b3a23ce4 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -5418,8 +5418,15 @@ namespace NLGUI // *************************************************************************** void CGroupHTML::htmlBR(const CHtmlElement &elm) { - ucstring tmp("\n"); - addString(tmp); + if (!_Paragraph || _Paragraph->getNumChildren() == 0) + { + ucstring tmp("\n"); + addString(tmp); + } + else + { + endParagraph(); + } } // ***************************************************************************