[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Manual pages autocompletion
From: Matteo Merli <merlim () libero ! it>
Date: 2001-06-18 10:22:42
[Download RAW message or body]
> > 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 <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic