Fix bug 50228

This commit is contained in:
Kulikova Svetlana
2021-05-07 11:13:32 +03:00
parent 81004ae5e0
commit 98d04eb7d7
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ HRESULT CEpubFile::FromHtml(const std::wstring& sHtmlFile, const std::wstring& s
nImage = sIndexHtml.find(L" ");
while (nImage != std::wstring::npos)
{
sIndexHtml.replace(nImage, 6, L" ");
sIndexHtml.replace(nImage, 6, L" ");
nImage = sIndexHtml.find(L" ", nImage);
}
// заменяем <s> на style=text-decoration:line-through

View File

@ -21,7 +21,7 @@ int main()
std::wstring sFile = NSFile::GetProcessDirectory() + L"/../../../FromHtmlTest/test3";
CEpubFile oEpub;
oEpub.SetTempDirectory(sTmp);
oEpub.FromHtml(sFile, sOutputDirectory + L"/res.epub");
oEpub.FromHtml(sFile, sFile, sOutputDirectory + L"/res.epub", L"");
NSDirectory::DeleteDirectory(sTmp);
return 0;
}