chm-lib icon indicating copy to clipboard operation
chm-lib copied to clipboard

Merge object is not placed properly into the tree structure

Open skriker opened this issue 6 years ago • 2 comments

test.hhc.txt

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.

skriker avatar May 04 '20 16:05 skriker

Could you share the code you use to read this file?

mlocati avatar May 04 '20 21:05 mlocati

<?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); 

skriker avatar May 05 '20 08:05 skriker