From 0ca8ac97c634011847d5f25029556c7c5e1eff6a Mon Sep 17 00:00:00 2001 From: Kulikova Svetlana Date: Tue, 25 May 2021 10:34:06 +0300 Subject: [PATCH] Fix bug 50004 --- Fb2File/Fb2File.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Fb2File/Fb2File.cpp b/Fb2File/Fb2File.cpp index f9cfb18717..03ec434da8 100644 --- a/Fb2File/Fb2File.cpp +++ b/Fb2File/Fb2File.cpp @@ -1744,11 +1744,18 @@ void readStream(NSStringUtils::CStringBuilder& oXml, XmlUtils::CXmlLiteReader& o } else if (sName == L"a") { - oIndexHtml.MoveToNextAttribute(); - oXml.WriteString(L""); + while (oIndexHtml.MoveToNextAttribute()) + { + std::wstring sName = oIndexHtml.GetName(); + if (sName == L"name") + sName = L"id"; + oXml.WriteString(L""); + } oIndexHtml.MoveToElement(); + readStream(oXml, oIndexHtml, arrBinary, bWasP, bWasTable); oXml.WriteString(L""); }