+void wxHtmlWinParser::DoAddText(wxChar *temp, int& templen)
+{
+ #define NBSP_UNICODE_VALUE 160
+#if !wxUSE_UNICODE
+ if ( m_nbsp == 0 )
+ m_nbsp = GetEntitiesParser()->GetCharForCode(NBSP_UNICODE_VALUE);
+ #define CUR_NBSP_VALUE m_nbsp
+#else
+ #define CUR_NBSP_VALUE NBSP_UNICODE_VALUE
+#endif
+
+ temp[templen] = 0;
+ templen = 0;
+#if !wxUSE_UNICODE
+ if (m_EncConv)
+ m_EncConv->Convert(temp);
+#endif
+ size_t len = wxStrlen(temp);
+ for (size_t j = 0; j < len; j++)
+ {
+ if (temp[j] == CUR_NBSP_VALUE)
+ temp[j] = wxT(' ');
+ }
+
+ wxHtmlCell *c = new wxHtmlWordCell(temp, *(GetDC()));
+
+ ApplyStateToCell(c);
+
+ m_Container->InsertCell(c);
+ ((wxHtmlWordCell*)c)->SetPreviousWord(m_lastWordCell);
+ m_lastWordCell = (wxHtmlWordCell*)c;
+}
+