This commit is contained in:
Elena.Subbotina
2023-06-01 13:12:12 +03:00
parent fbcf56be9e
commit a568aa02c4

View File

@ -219,9 +219,8 @@ namespace Txt2Docx
if (!s.empty()) if (!s.empty())
{ {
OOX::Logic::CRunProperty *rPr_ = new OOX::Logic::CRunProperty(); OOX::Logic::CRunProperty *rPr_ = new OOX::Logic::CRunProperty();
rPr_->m_oRFonts = font; rPr_->m_oRFonts = font;
std::wstring s_ = XmlUtils::EncodeXmlString(s); AddText(paragraph, s, rPr_);
AddText(paragraph, s_, rPr_);
} }
} }
AddTab(paragraph); AddTab(paragraph);
@ -230,8 +229,7 @@ namespace Txt2Docx
if (!line.empty()) if (!line.empty())
{ {
std::wstring s_ = XmlUtils::EncodeXmlString(line); AddText(paragraph, line, rPr);
AddText(paragraph, s_, rPr);
} }
pDocument->m_arrItems.push_back(paragraph); pDocument->m_arrItems.push_back(paragraph);
} }