-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Limit index fields in hhk file of chm file. #9919
Limit index fields in hhk file of chm file. #9919
Conversation
Based on some comments in doxygen#9894 where a warning was shown like ``` Warning: Keyword string: ... is too long. The maximum size is 488 characters. ``` tit was found that this was due to an extremely long `value` field in the `index.hhk` (index file), limiting this field and placing an ellipse when necessary
@albert-github Kept the changes a bit more local, see b8db19d |
I've been thinking about this as well but it might lead to problems in case |
Previous comment has been reformulated. |
@albert-github Good point. I made this fix 0b5c6f6, which assumes this is a very rare case so it does not have to be very efficient. |
@doxygen I think this is better not it is not good. |
@albert-github correct, so when it now happens, the |
@doxygen, I don't think your remark "correct" is correct as we will never get into the |
@albert-github Ah now I see what you mean. Indeed, that's not ok. We should also use the length after conversion. Second try f482317. |
@doxygen I think this will work. For a small efficiency improvement I think it would even be better to change the lines:
into
as otherwise the initial conversation will be done twice in case of an initial conversation that is to long or the |
@albert-github Doing the |
I see indeed the first conversion takes the full string and on failure the first 400 bytes are taken (back in my head was, incorrectly, that the first conversion was already with the first 400 bytes). The limit of 400 characters was an arbitrary number (its should be a number less than 488), so even the 450 could be expanded to a larger number and the 400 could also at a higher number but I think this is not worth the effort as
so the current choices are OK for me. |
Based on some comments in #9894 where a warning was shown like
it was found that this was due to an extremely long
value
field in theindex.hhk
(index file), limiting this field and placing an ellipse when necessary