Search doesn't work correctly with some text format (LaTeX-related)
Submitted by antti
Assigned to poppler-bugs
Created attachment 120185 Sample PDF file, zipped
Text search doesn't work properly with text that is formatted in a certain way. If such text is copied, it appears to contain spaces, even though it probably shouldn't.
Open the attached sample PDF and search for "tcsetattr" - no results. Search for "tcgetattr" - one result found on page 38, should find two.
Also try to search for "struct stat" on page 13 - no results. But searching for "struct s" works on the same page.
Tested with Okular 0.23.2 and poppler 0.37.0-1 from Arch Linux repository. Also tested with Evince 3.10.3 and unknown poppler version on Ubuntu.
Search seems to work correctly in PDF X-Change Viewer on Windows.
Attachment 120185, "Sample PDF file, zipped":