fixed double eol problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -118,6 +118,10 @@ wxString wxTextFile::Translate(const wxString& text, wxTextFileType type)
|
|||||||
if ( chLast == _T('\r') ) {
|
if ( chLast == _T('\r') ) {
|
||||||
// Mac line termination
|
// Mac line termination
|
||||||
result += eol;
|
result += eol;
|
||||||
|
|
||||||
|
// reset chLast to avoid inserting another eol before the
|
||||||
|
// next character
|
||||||
|
chLast = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add to the current line
|
// add to the current line
|
||||||
|
Reference in New Issue
Block a user