After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 451142 - Can't search for phrases crossing line boundaries
Can't search for phrases crossing line boundaries
Status: RESOLVED DUPLICATE of bug 408299
Product: evince
Classification: Core
Component: general
0.8.x
Other All
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-26 05:07 UTC by sedillard
Modified: 2007-06-26 07:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description sedillard 2007-06-26 05:07:01 UTC
Please describe the problem:
If you search for a phrase, say "Mary had a little lamb", and the document contains "Mary had\n a little lamb", where '\n' is the newline character, the occurrence will not be found.

Technically, the search is not broken because I did not specifically search for a phrase with a newline in it. Acroread has the same behavior. However, I think this is not what most people want. 

Steps to reproduce:
1. Make a PDF with text spanning two lines.
2. Search for a phrase that crosses the line boundary.



Actual results:
The occurrence is not found. 

Expected results:
I would expect it to find the phrase, however I understand that there are parsing issues, i.e., what whitespace is allowed in search matches? Maybe the solution is not obvious. Off the top of my head, I'd say replace every whitespace in the search phrase with a wildcard, and let this wildcard match any whitespace in the text. I think the spurious matches this might allow (i.e., crossing paragraph boundaries) would be "less worse" than being unable to find phrases that cross line boundaries. 

Does this happen every time?
Yes

Other information:
Comment 1 Nickolay V. Shmyrev 2007-06-26 07:21:43 UTC
 Hi, this looks like a bug with the PDF backend.  Could you please follow these instructions to help get this bug fixed.  

Thank You. http://live.gnome.org/Evince/PopplerBugs#poppler
Comment 2 Nickolay V. Shmyrev 2007-06-26 07:23:52 UTC
And actually we already have bug report about this. Sorry

*** This bug has been marked as a duplicate of 408299 ***