mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/458
This commit is contained in:
@ -291,7 +291,10 @@ bool TxtFile::writeUtf8(const std::vector<std::string>& content)
|
|||||||
for (std::vector<std::string>::const_iterator iter = content.begin(); iter != content.end(); ++iter)
|
for (std::vector<std::string>::const_iterator iter = content.begin(); iter != content.end(); ++iter)
|
||||||
{
|
{
|
||||||
file.WriteFile((BYTE*)(*iter).c_str(), (*iter).length());
|
file.WriteFile((BYTE*)(*iter).c_str(), (*iter).length());
|
||||||
file.WriteFile((BYTE*)EndLine, 2);
|
if (iter + 1 != content.end())
|
||||||
|
{
|
||||||
|
file.WriteFile((BYTE*)EndLine, 2);
|
||||||
|
}
|
||||||
|
|
||||||
m_linesCount++;
|
m_linesCount++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user