[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [okular] [Bug 300992] Searching for a phrase does not find occurences split by a line break / newlin
From:       Marduk <bugzilla_noreply () kde ! org>
Date:       2016-11-24 23:33:32
Message-ID: bug-300992-17878-ggeSO56eH7 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=300992

--- Comment #18 from Marduk <mardukbp@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 watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic