This commit is contained in:
Kulikova Svetlana
2021-02-10 11:34:53 +03:00
parent ee4a61f8bc
commit ab9b430ef4

View File

@ -1548,6 +1548,42 @@ void readStream(NSStringUtils::CStringBuilder& oXml, XmlUtils::CXmlLiteReader& o
if (!bWasP)
oXml.WriteString(L"</p>");
}
else if (sName == L"h1")
{
oXml.WriteString(L"<title><p>");
readStream(oXml, oIndexHtml, arrBinary, true);
oXml.WriteString(L"</p></title>");
}
else if (sName == L"h2")
{
oXml.WriteString(L"<section><title><p>");
readStream(oXml, oIndexHtml, arrBinary, true);
oXml.WriteString(L"</p></title></section>");
}
else if (sName == L"h3")
{
oXml.WriteString(L"<section><section><title><p>");
readStream(oXml, oIndexHtml, arrBinary, true);
oXml.WriteString(L"</p></title></section></section>");
}
else if (sName == L"h4")
{
oXml.WriteString(L"<section><section><section><title><p>");
readStream(oXml, oIndexHtml, arrBinary, true);
oXml.WriteString(L"</p></title></section></section></section>");
}
else if (sName == L"h5")
{
oXml.WriteString(L"<section><section><section><section><title><p>");
readStream(oXml, oIndexHtml, arrBinary, true);
oXml.WriteString(L"</p></title></section></section></section></section>");
}
else if (sName == L"h6")
{
oXml.WriteString(L"<section><section><section><section><section><title><p>");
readStream(oXml, oIndexHtml, arrBinary, true);
oXml.WriteString(L"</p></title></section></section></section></section></section>");
}
else if (sName == L"span")
{
std::wstring sStyle;