From kde-devel Mon Jun 18 10:22:42 2001 From: Matteo Merli Date: Mon, 18 Jun 2001 10:22:42 +0000 To: kde-devel Subject: Re: Manual pages autocompletion X-MARC-Message: https://marc.info/?l=kde-devel&m=99286009309059 > > it happen for all man pages, and in fact i have all the filenames in the > > form of "read.2.bz2" > > is it possible to convert the filename in the right way to be read by > > man-kio? > > Ah, bz2, that's it. I'll fix the url completion. (Don't do > anything to your man pages just yet :-) > > /David oh.. i meant to "translate" the filename when you ask for it.. ;) anyway i've solved the problem adding these lines to parseUrl() : (now it should handle both () . formats for the section parameter) --- kio_man.cpp-old Mon Jun 18 12:06:08 2001 +++ kio_man.cpp Mon Jun 18 11:59:54 2001 @@ -68,14 +68,19 @@ title = url; + bool brackets = true; int pos = url.find('('); - if (pos < 0) - return true; + if (pos < 0) { + pos = url.find('.'); + if (pos < 0) + return true; + else brackets = false; + } title = title.left(pos); section = url.mid(pos+1); - section = section.left(section.length()-1); + section = section.left(section.length()-brackets); return true; } >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<