mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +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" ");
|
nImage = sIndexHtml.find(L" ");
|
||||||
while (nImage != std::wstring::npos)
|
while (nImage != std::wstring::npos)
|
||||||
{
|
{
|
||||||
sIndexHtml.replace(nImage, 6, L" ");
|
sIndexHtml.replace(nImage, 6, L" ");
|
||||||
nImage = sIndexHtml.find(L" ", nImage);
|
nImage = sIndexHtml.find(L" ", nImage);
|
||||||
}
|
}
|
||||||
// заменяем <s> на style=text-decoration:line-through
|
// заменяем <s> на style=text-decoration:line-through
|
||||||
|
|||||||
@ -21,7 +21,7 @@ int main()
|
|||||||
std::wstring sFile = NSFile::GetProcessDirectory() + L"/../../../FromHtmlTest/test3";
|
std::wstring sFile = NSFile::GetProcessDirectory() + L"/../../../FromHtmlTest/test3";
|
||||||
CEpubFile oEpub;
|
CEpubFile oEpub;
|
||||||
oEpub.SetTempDirectory(sTmp);
|
oEpub.SetTempDirectory(sTmp);
|
||||||
oEpub.FromHtml(sFile, sOutputDirectory + L"/res.epub");
|
oEpub.FromHtml(sFile, sFile, sOutputDirectory + L"/res.epub", L"");
|
||||||
NSDirectory::DeleteDirectory(sTmp);
|
NSDirectory::DeleteDirectory(sTmp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user