From af035b26c422255f23cbc06d0af5ea7aa72696ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 26 Aug 2001 14:49:09 +0000 Subject: [PATCH] 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 --- src/html/winpars.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index fc5ddff815..bf62ed1893 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -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) -- 2.50.0