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