fix bug that text_editor::text use \n\r as end of line
This commit is contained in:
parent
e963c29646
commit
96f62a7b08
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* A text editor implementation
|
||||
* Nana C++ Library(http://www.nanapro.org)
|
||||
* Copyright(C) 2003-2018 Jinhao(cnjinhao@hotmail.com)
|
||||
* Copyright(C) 2003-2019 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
@ -1728,7 +1728,7 @@ namespace nana {
|
||||
str = impl_->textbase.getline(0);
|
||||
for (std::size_t i = 1; i < lines; ++i)
|
||||
{
|
||||
str += L"\n\r";
|
||||
str += L"\r\n";
|
||||
str += impl_->textbase.getline(i);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user