[Okular-devel] [Bug 266535] New: Searching for an asterisk skips over the second asterisk in a pair of adjacent asterisks
Eike Hein
hein at kde.org
Thu Feb 17 16:58:11 CET 2011
https://bugs.kde.org/show_bug.cgi?id=266535
Summary: Searching for an asterisk skips over the second
asterisk in a pair of adjacent asterisks
Product: okular
Version: 0.11.2
Platform: Compiled Sources
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: general
AssignedTo: okular-devel at kde.org
ReportedBy: hein at kde.org
The affected Okular version reports itself as 0.11.2, but is a recent SVN
checkout of trunk.
Secondly, let me preface this by saying that '*' refers to a literal, single
asterisk character throughout this report, not to a matching/globbing
expression.
The behavior I'm seeing happens while searching for '*' in a PDF document. The
document is a book, written in English, containing both regular prose writing
and code listings written in Python. Embedded both in the regular English prose
writing and the code listings are many occurences of '**' (i.e. a pair of
adjacent asterisk characters, the power operator in Python), sometimes several
per page, and on many pages.
Using Okular's search feature (accessed by Ctrl+F) to search for '*' in this
book always only marks and jumps to the first '*' in any occurence of '**'.
In other words, a search for '*' may yield the following result, where <> are
used to denote the yellow (in the default color scheme, at any rate) marking
Okular paints:
[...] <*>* [...]
Clicking "Next" on the search bar now will not produce the expected result of
marking the second '*' in the same occurence of '**':
[...] *<*> [...]
Rather, it will jump to the next occurence of a single asterisk or the first
asterisk in a pair of asterisks elsewhere in the text.
I initially assumed there may be some magic there that intentionally produces
this behavior if the subject of a search is found several times adjacent to
each other, but Pino Toscano has indicated this is not the case, so this is
likely a bug.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Okular-devel
mailing list