Full-text search in chm files not working
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
If chm files are displaye in Lazarus' LHelp and a full-text search is executed (page "Search") then pages are found in which the search phrase does not exist.
Steps to reproduce:
- Run LHelp.exe
- Open rtl.chm.
- Select tabsheet "Search"
- Type "writeln" as keyword to search for
- A long list of hits appear. Most of them do not contain the search word "writeln".
The attached patch fixes the issue.
- After applying the patch and repeating the same sequence, different pages are found, and each one contains the search word.
Additional information:
The fix was provided by Sergey Bodrov, but he has too many formatting changes and fixes for several issues in his sources -- see discussion on Lazarus Mailing List http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-CHM-help-package-tt4053449.html. I extracted the fix for this full-text search issue from his sources.
Mantis conversion info:
- Mantis ID: 32814
- Fixed in version: 3.1.1
- Fixed in revision: 37731 (#c0a6715d)