Umm… nothing to see here… 😄
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1dd6235260
commit
40e39dc0e7
15
src/zip.cpp
15
src/zip.cpp
|
@ -211,20 +211,13 @@ std::vector<std::string> list_spine(const fs::path &filepath)
|
||||||
{
|
{
|
||||||
const auto &idref{itemref.attribute("idref").value()};
|
const auto &idref{itemref.attribute("idref").value()};
|
||||||
const auto &item{manifest.find_child_by_attribute("id", idref)};
|
const auto &item{manifest.find_child_by_attribute("id", idref)};
|
||||||
const auto href{
|
auto href{helpers::urldecode(item.attribute("href").value())};
|
||||||
helpers::urldecode(item.attribute("href").value())};
|
|
||||||
const auto real_href{
|
|
||||||
[&href, &spine_filepaths, &opf_file_path]
|
|
||||||
{
|
|
||||||
if (href[0] != '/')
|
if (href[0] != '/')
|
||||||
{
|
{
|
||||||
return spine_filepaths.emplace_back(
|
href = (opf_file_path.parent_path() /= href);
|
||||||
opf_file_path.parent_path() /= href);
|
|
||||||
}
|
}
|
||||||
return href;
|
DEBUGLOG << "Found in spine: " << href;
|
||||||
}()};
|
spine_filepaths.emplace_back(href);
|
||||||
DEBUGLOG << "Found in spine: " << real_href;
|
|
||||||
spine_filepaths.emplace_back(real_href);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user