Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge object is not placed properly into the tree structure #8

Open
skriker opened this issue May 4, 2020 · 2 comments
Open

Merge object is not placed properly into the tree structure #8

skriker opened this issue May 4, 2020 · 2 comments

Comments

@skriker
Copy link

skriker commented May 4, 2020

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.

@mlocati
Copy link
Owner

mlocati commented May 4, 2020

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

@skriker
Copy link
Author

skriker commented May 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants