wxHtmlWordCell::wxHtmlWordCell(const wxString& word, wxDC& dc) : wxHtmlCell()
{
m_Word = word;
+
m_Word.Replace(wxT(" "), wxT(" "), TRUE);
m_Word.Replace(wxT("""), wxT("\""), TRUE);
m_Word.Replace(wxT("<"), wxT("<"), TRUE);
m_Word.Replace(wxT(">"), wxT(">"), TRUE);
m_Word.Replace(wxT("&"), wxT("&"), TRUE);
+
+ m_Word.Replace(wxT("  "), wxT(" "), TRUE);
+ m_Word.Replace(wxT("" "), wxT("\""), TRUE);
+ m_Word.Replace(wxT("< "), wxT("<"), TRUE);
+ m_Word.Replace(wxT("> "), wxT(">"), TRUE);
+ m_Word.Replace(wxT("& "), wxT("&"), TRUE);
+
dc.GetTextExtent(m_Word, &m_Width, &m_Height, &m_Descent);
SetCanLiveOnPagebreak(FALSE);
}