fixed HTML parsing in regard to spaces between tags

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-08-26 14:49:09 +00:00
parent 79d6c01818
commit af035b26c4

View File

@@ -234,6 +234,7 @@ void wxHtmlWinParser::AddText(const wxChar* txt)
{
temp[templen-1] = wxT(' ');
temp[templen] = 0;
if (templen == 1) continue;
templen = 0;
if (m_EncConv)
m_EncConv->Convert(temp);
@@ -249,7 +250,8 @@ void wxHtmlWinParser::AddText(const wxChar* txt)
m_tmpLastWasSpace = TRUE;
}
}
if (templen)
if (templen && (templen > 1 || temp[0] != wxT(' ')))
{
temp[templen] = 0;
if (m_EncConv)