X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f23e92e72ae94e775a9931ba3a9f40cbdf774c71..2049d9b54bce5282ae4cfcfbdb48aecf05426140:/src/html/winpars.cpp 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)