Reading your mail bit more careful I now notice the "without the quotes" you mention. That is your answer right there - for searching a literal string, put quotes around it.
Please still report the bug - needs better error handling than throwing the error dialog. Regards, Jaap On Thu, Apr 18, 2013 at 9:31 AM, Jaap Karssenberg <jaap.karssenb...@gmail.com> wrote: > Hi Syv, > > PLease file a bug report in the bug tracker at https://bugs.launchpad.net/zim/ > > Thanks, > > Jaap > > > > On Thu, Apr 18, 2013 at 2:15 AM, Syv Ritch <s...@foto-biz.com> wrote: >> Hi, >> >> I opened my note book and search for the sentence: >> >> "If you don't mind me asking" (without the quotes) >> >> and I got from Z59, xUbuntu 12.04 >> >> ***START************************************ >> Looks like you found a bug >> >> Assertion Error: >> >> This is zim 0.59 >> Python version is sys.version_info(major=2, minor=7, micro=3, >> releaselevel='final', serial=0) >> Gtk version is (2, 24, 10) >> Pygtk version is (2, 24, 0) >> Platform is posix >> Zim revision is: >> branch: pyzim-trunk >> revision: 636 par...@cpan.org-20130123210740-rquhot1l1yzx9w0i >> date: 2013-01-23 22:07:40 +0100 >> >> ======= Traceback ======= >> File "/usr/lib/pymodules/python2.7/zim/gui/searchdialog.py", line 89, in >> _search >> self.results_treeview.search(string) >> File "/usr/lib/pymodules/python2.7/zim/gui/searchdialog.py", line 173, in >> search >> self.query = Query(query) >> File "/usr/lib/pymodules/python2.7/zim/search.py", line 125, in __init__ >> self.root = self._parse_query(string) >> File "/usr/lib/pymodules/python2.7/zim/search.py", line 129, in >> _parse_query >> words = split_quoted_strings(string, unescape=False) >> File "/usr/lib/pymodules/python2.7/zim/parsing.py", line 41, in >> split_quoted_strings >> assert not string >> AssertionError: >> >> ***END************************************ >> >> If I search for: >> >> "mind me asking" (without the quotes) it works. It looks like a problem with >> the ' >> >> If I search for: >> >> "If you don\'t mind me asking" (without the quotes) same error. Can't escape >> the single quote. How do I search for the quotes (single and double)? >> >> >> >> -- >> Thanks >> http://www.foto-biz.com >> The Business Of Being A Photographer -- Lightroom Q&A >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~zim-wiki >> Post to : zim-wiki@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~zim-wiki >> More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp