Changed: CGroupParagraph does not handle text with line-breaks

--HG--
branch : develop
This commit is contained in:
Nimetu 2017-04-25 12:18:53 +03:00
parent 108759952e
commit bff8ed488e

View file

@ -1517,7 +1517,14 @@ namespace NLGUI
} }
break; break;
case HTML_BR: case HTML_BR:
addString(ucstring ("\n")); {
endParagraph();
// insert zero-width-space (0x200B) to prevent removal of empty lines
ucstring tmp;
tmp.fromUtf8("\xe2\x80\x8b");
addString(tmp);
}
break; break;
case HTML_BODY: case HTML_BODY:
{ {