wxHTML: preserve TAB characters when copying <pre> content to clipboard (backport from trunk)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-04-23 11:54:05 +00:00
parent 555accf41f
commit c853b92bdb
5 changed files with 314 additions and 73 deletions

View File

@@ -631,6 +631,8 @@ wxString wxHtmlWordCell::ConvertToText(wxHtmlSelection *s) const
{
int part1 = priv.x;
int part2 = priv.y;
if ( part1 == part2 )
return wxEmptyString;
return m_Word.Mid(part1, part2-part1);
}
//else: return the whole word below