mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug 50228
This commit is contained in:
@ -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
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user