mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 09:55:47 +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)
|
||||
{
|
||||
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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user