mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 05:24:10 +08:00
Fix bugs in html2md conversion
This commit is contained in:
@ -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};\
|
||||
|
||||
Reference in New Issue
Block a user