chm-lib
chm-lib copied to clipboard
Merge object is not placed properly into the tree structure
Attached TOC should be transformed into the tree structure with 3 folders with second folder ("Cizí") filled with items from other file.
TOC parser does show empty second folder and items from the other file added right behind it.
Could you share the code you use to read this file?
<?php
$chm = \CHMLib\CHM::fromFile('./src/help.chm');
$map = new \CHMLib\Map();
$map->add('core_en.chm', \CHMLib\CHM::fromFile('./src/core_en.chm'));
$toc = $chm->getTOC();
$toc->resolve($map, true);