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 556598 - searching for two or more words upside down
searching for two or more words upside down
Status: RESOLVED DUPLICATE of bug 622160
Product: evince
Classification: Core
Component: general
2.24.x
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-16 18:11 UTC by Pedro Villavicencio
Modified: 2013-11-18 19:20 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Test case showing that you can't search across line wraps (18.62 KB, application/pdf)
2009-11-28 13:45 UTC, Tony Lewis
Details

Description Pedro Villavicencio 2008-10-16 18:11:31 UTC
this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/evince/+bug/282574

"On searching for two or more words, then evince doesn't find the words separated by new line in the text.
Let's say that we are searching for "find next" in the text under

Find next bla bla bla bla find
next

First occurrence of "find next" in this text will be found but second occurrence will not be found and listed since "find" and "next" are separated by a new line."

Thanks,
Comment 1 Gorka Navarrete 2009-05-20 10:17:07 UTC
I can confirm this also using Ubuntu 9.04 with Gnome 2.26.1

Not sure about the flagged importance of the bug. I understand it does not renders the program unusable but for me, it's the reason behind starting using Adobe Acrobat.
Comment 2 Tony Lewis 2009-11-28 13:45:54 UTC
Created attachment 148648 [details]
Test case showing that you can't search across line wraps
Comment 3 Tony Lewis 2009-11-28 13:46:09 UTC
Confirmed still present in 9.10 (Evince 2.28.1).

Test case attached above.  Try and find the string "line boundaries" (sans quotes).  Fails.

This is more than a year old, with no comment from developers.  This bug is harmful because you might not know that it happens, and you can't work around it.

The bug summary is inaccurate, though
Comment 4 Fredrik Wendt 2013-11-18 18:35:07 UTC
I just got bitten by this nasty bug, with Evince 3.10.0 (Ubuntu 13.10). What would it take to move from UNCONFIRMED to CONFIRMED?
Comment 5 Fredrik Wendt 2013-11-18 18:53:24 UTC
I'm guessing here, but it looks like evince is relying on libpoppler to do the searching. I'm going to dig a little deeper and see if I can find where the actual searching happens - and I'm currently in libpoppler43/src/poppler/TextOutputDev.cc which has the takeText function used to return the object with findText. But I have really poor tools for this so it's taking me "forever" with vim. :-)
Comment 6 Germán Poo-Caamaño 2013-11-18 19:02:09 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

Fredrik Wendt, if you are interested in work on this bug, the relevant bug is https://bugs.freedesktop.org/show_bug.cgi?id=61104

*** This bug has been marked as a duplicate of bug 622160 ***
Comment 7 Fredrik Wendt 2013-11-18 19:05:17 UTC
And this is what I've found: 
for (line = blk->lines; line; line = line->next) {

I also found https://bugzilla.gnome.org/show_bug.cgi?id=408299 which I think is the underlying bug here.
Comment 8 Germán Poo-Caamaño 2013-11-18 19:20:47 UTC
(In reply to comment #7)
> And this is what I've found: 
> for (line = blk->lines; line; line = line->next) {
> 
> I also found https://bugzilla.gnome.org/show_bug.cgi?id=408299 which I think is
> the underlying bug here.

Thanks for pointing out.  https://bugs.freedesktop.org/show_bug.cgi?id=11381 is the relevant bug.