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:
parent
8c6f3b9c6d
commit
b01ca3e3d9
@ -118,6 +118,10 @@ wxString wxTextFile::Translate(const wxString& text, wxTextFileType type)
|
||||
if ( chLast == _T('\r') ) {
|
||||
// Mac line termination
|
||||
result += eol;
|
||||
|
||||
// reset chLast to avoid inserting another eol before the
|
||||
// next character
|
||||
chLast = 0;
|
||||
}
|
||||
|
||||
// add to the current line
|
||||
|
Loading…
Reference in New Issue
Block a user