X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66a77a748e5c8002f3f9ebd66f5457aca5aabad8..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/html/htmlcell.cpp diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index 04570b4127..b9139ae9e8 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -73,11 +73,19 @@ bool wxHtmlCell::AdjustPagebreak(int *pagebreak) 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); }