Fix bugs in html2md conversion

This commit is contained in:
Kirill Polyakov
2026-02-11 17:18:31 +03:00
parent f74caacbd0
commit 86f84f89de
3 changed files with 9 additions and 7 deletions

View File

@ -1095,6 +1095,9 @@ bool CHTMLReader::ReadTable(std::vector<NSCSS::CNode>& arSelectors)
oTable.SetAlign(pStyle->m_oDisplay.GetHAlign().ToWString());
//------
if (!m_mTags[HTML_TAG(TABLE)]->Open(arSelectors, &oTable))
return false;
int nDeath = m_oLightReader.GetDepth();
while(m_oLightReader.ReadNextSiblingNode(nDeath))
{
@ -1118,9 +1121,6 @@ bool CHTMLReader::ReadTable(std::vector<NSCSS::CNode>& arSelectors)
oTable.Shorten();
oTable.CompleteTable();
if (!m_mTags[HTML_TAG(TABLE)]->Open(arSelectors, &oTable))
return false;
#define CONVERT_ROWS(rows, parse_mode)\
{\
const std::vector<CStorageTableRow*> arRows{rows};\