-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Wrong QHP index structure #9094
Comments
With the following diff,
it looks almost correct: but "Tutorials" appears one too much to the left. Maybe because it's empty or because tab type is "user"? |
I decided to reimplement the Qhp indexer completely, see referenced commit. I also removed the |
Thanks so much. I just recompiled it. Some observations: I had to add this for it to compile:
Qhelpgenerator(qt4) stops with the following error: Here the problematic qhp part:
Here the qhp file: I think these characters need to be escaped: https://stackoverflow.com/a/1091953/7471760 Here the qhp file after replacing by hand the "<" with After running qhelpgenerator on that one, I get the proper tree!! Thanks so much! However, there seems to be a problem with the paths. When I open the file with qtassistant, the following warning is shown: It might be though a problem on where qthelpgenerator is being run or something like that. |
@ferdymercury I fixed the compilation issue and added escaping of the special XML characters. Not sure yet about the path problem. If you know what needs to be changed, then please let me know. |
Thanks! I can confirm that the escaped characters and compile issues are now fixed. :) One minor issue. It seems that in the resulting qhp file, there are some duplicated files listed:
--> Should I open a separate issue for this ? Just as a side note, I noticed that the qhp problems had been also observed in 2014 within LLVM. https://reviews.llvm.org/D2967 Concerning the path issue, I just found out that it's an issue with qt4-assistant. The issue disappears with qt5-assistant. Thanks! |
The problem regarding the double entries in the
as this is not a problem regarding the structure, best is to create a new issue. |
Ok, thanks, will do. Shall I close this issue then ? |
Code has been corrected in master on GitHub (please don't close the issue as this will be done at the moment of an official release). |
Some remarks:
|
From the point of view of usability, I think that removing also the '\n' as was done in the earlier implementation was too much of an optimization, because if you try to open this file with 'nano' or any text editor, it gets stuck forever if your qhp is 300Mb long, as it is all in one line, and at least my CPU was smoking hot. So stripping the spaces but not the \n, as done now, is a good compromise for visibility, as there are 99x more spaces than '\n'. (So I like it more as it is now). Of course, before one could still go to -d qhp, but then in some cases the file might become very big, so "release" mode is now just great for a quick glance, and then -d for debugging of section alignment, etc. |
This issue was previously marked 'fixed but not released', |
Describe the bug
QHP generation is currently incorrect in master. The tree structure of classes is recursively nested, instead of all at the same level.
index.qhp.zip
Expected behavior
QHP index is similar to the HTML index.
Screenshots
If i go before commit 2952581 i.e. #9069, the QHP result is
The HTML result is correct:
To Reproduce
Version
1.9.4 (f8bf952*)
Stack trace
Additional context
Part of this has been discussed in the "space stripping" issue: #9058
but to keep the discussion clean, I open a new issue.
The text was updated successfully, but these errors were encountered: