-
Notifications
You must be signed in to change notification settings - Fork 500
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
Headings marked as index item does not put text in PDF outline items #2430
Comments
This is not the behavior I observe. I expect that the outline will use the text from the non-concealed index term. Please provide a concrete example that I can test, as it may provide details that you are not mentioning that are affecting the behavior. Also, please report which version of Asciidoctor PDF you are using (asciidoctor-pdf -v). |
Hope this helps...
Sample document:
Command used to convert: Keep up the good work! |
The nuance is that this seems to happen when sectnums is enabled, which is rather surprising. I'll take a closer look. |
FYI, |
This appears to be a bug in either Prawn or the PDF format. When there's a null character in the value of an outline, it stops showing the text after that point. We'll have to remove the null character (which is used internally as a placeholder for the index term). |
The null character is making it to the PDF, so it must be the PDF reader that's tripping up on it. In fact, it may even be a limitation of evince (or whatever it's built on). I don't see the same issue when using the Firefox PDF viewer. |
…hen sanitizing text
I'll backport this to the v2.3.x release line. |
I'm marking headers as index items (non-concealed) and I noticed that the PDF outline now has blank section items (untitled).
I'm using current
asciidoctor-pdf
and all gems freshly updated on Windows 11. Also,section-refsig
andchapter-refsig
have been unset.There is a workaround, making the header names normal and duplicating them as concealed index items, but this must be a bug none the less.
The text was updated successfully, but these errors were encountered: