[okular] [Bug 300992] Searching for a phrase does not find occurences split by a line break / newline in Pdf
Marduk
bugzilla_noreply at kde.org
Thu Nov 24 23:33:32 UTC 2016
https://bugs.kde.org/show_bug.cgi?id=300992
--- Comment #18 from Marduk <mardukbp at mac.com> ---
This bug bothers me so much, that I solved it.
In core/textpage.cpp I appended to the definition of CaseInsensitiveCmpFn and
CaseSensitiveCmpFn the following:
if ( from.endsWith(QLatin1Char('\n')) && to.endsWith(QLatin1Char(' ')) ) {
return true;
}
This means that a space in the query will match against a space (done by
QString.compare) and a newline in the PDF.
Could you please include this in the next release?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list