-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Version 1.9.19 drops spaces between words #533
Comments
It doesn't look like there is a buffer/keyword issue - HTML output preserves the spacing so there is something happening when the PDF/PS output is formatted. Was the last version you used 1.9.3? I haven't had any reports of this issue before so I need to figure out when this broke... |
This is also happening to me and the last version I used was 1.9.18 |
@totalAldo Great, thank you that helps a lot! |
This might be a regression caused by the fix for #528. Investigating... |
Version 1.9.3 is the last version that I can use for our application. Versions after that one have bugs that make the PDF files generated useless. One of these problems was the broken links to external files, which I previously reported. That seems to be fixed in this release, but the missing spaces issue again prevents upgrading. |
The reason I suggested it might be a buffer and/or keyword issue is that I only observed the problem when files are large enough (> 1 kb), and the drops seemed more common before words like "as" and "for". Adding content (plain text paragraphs) at the beginning of a file can change where or if the problem occurs. But it's just a guess, and spaces are removed before other words, too. |
OK, I reverted that one change and it didn't make a difference. |
If you want me to check changes before a release, I'd be happy to. I use htmldoc to generate a help file with about 400 pages from many dozens of source files, organized in multiple folders. We also generally check the PDF carefully for problems. |
@prichterich I've found the cause - the code to drop the leading space in some situations was modifying the string in place, which wasn't a problem until I added the string pool for 1.9.19, so duplicate strings started using the same pointer and storage... Try the latest code on Github: [master 38f89c2] Fix regression causing missing whitespace (Issue #533) |
Took me a while but I got it to build from the command line. Had to remove the x86 built from the architecture line in Makedefs since some of the used libs are installed as arm only. |
The spaces issue is fixed, but unfortunately, not all file links work. There seem to be some patterns, though. Many links that are broken (show up as file links) are to a file in a sub-directory, like this: -- Edit: -- |
@prichterich If you aren't getting an error/warning about the missing link, please file a new bug for that so I can fix it. |
htmdoc version 1.9.19 drops spaces between words in generated PDF files. This seems to be a new bug, possible buffer and/or keyword related. A simple example is attached.
htmldoc_spaces_bug.zip
The text was updated successfully, but these errors were encountered: