Merge pull request 'Fix bug #55424' (#458) from Rtf/Fixbugs into release/v9.1.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/458
This commit is contained in:
Oleg Korshul
2025-10-01 11:15:58 +00:00

View File

@ -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++;
}