Changed: Better handling of br tag

--HG--
branch : develop
This commit is contained in:
Nimetu 2019-05-21 23:07:30 +03:00
parent e573c7b6e9
commit e61c5937f3

View file

@ -5418,8 +5418,15 @@ namespace NLGUI
// *************************************************************************** // ***************************************************************************
void CGroupHTML::htmlBR(const CHtmlElement &elm) void CGroupHTML::htmlBR(const CHtmlElement &elm)
{ {
ucstring tmp("\n"); if (!_Paragraph || _Paragraph->getNumChildren() == 0)
addString(tmp); {
ucstring tmp("\n");
addString(tmp);
}
else
{
endParagraph();
}
} }
// *************************************************************************** // ***************************************************************************