Bug 273713 - KManPart displays HTML source
Summary: KManPart displays HTML source
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: man (show other bugs)
Version: 4.6
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 11:56 UTC by Christopher Yeleighton
Modified: 2012-08-14 22:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Previewing man files from Ark (85.92 KB, image/png)
2011-05-20 12:57 UTC, Anne-Marie Mahfouf
Details
Ark preview showing HTML source in KManPart (39.80 KB, image/png)
2011-05-20 13:37 UTC, Christopher Yeleighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2011-05-20 11:56:46 UTC
Version:           4.6 (using KDE 4.6.0) 
OS:                Linux

KManPart displays HTML source when the URL scheme is not man:

Reproducible: Didn't try

Steps to Reproduce:
  1. { kioclient exec /usr/share/man/man1/man.1.gz; }
  2. Tell Ark to preview man.1

Actual Results:  
  1, Ark shows up the archive containing man.1
  2. 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>MAN
 Manpage</TITLE>

…

Expected Results:  
  2.
MAN
 Section: Manual pager utils (1) 
NAME
 man - an interface to the on-line reference manuals

…


Workaround: 

{ kioclient exec man:/usr/share/man/man1/man.1.gz; }
Comment 1 Anne-Marie Mahfouf 2011-05-20 12:55:37 UTC
Works here, see attached screenshot. When I click on the file in Ark I get a man preview.

How do you "2. Tell Ark to preview man.1" exactly?
Comment 2 Anne-Marie Mahfouf 2011-05-20 12:57:06 UTC
Created attachment 60181 [details]
Previewing man files from Ark
Comment 3 Christopher Yeleighton 2011-05-20 13:33:16 UTC
(In reply to comment #1)
> How do you "2. Tell Ark to preview man.1" exactly?

Action: Preview
Comment 4 Anne-Marie Mahfouf 2011-05-20 13:37:18 UTC
I click in Ark on the file, is it what you also do?
Is the behavior I show on the screenshot the one you expect?

If so, please try with a new user, thanks.
Comment 5 Christopher Yeleighton 2011-05-20 13:37:20 UTC
Created attachment 60182 [details]
Ark preview showing HTML source in KManPart

I had to select text because the it displays black on dark
Comment 6 Anne-Marie Mahfouf 2011-05-20 13:43:33 UTC
Please try a new user to check if it is a configuration problem which I suspect.
Comment 7 Christopher Yeleighton 2011-05-20 14:36:36 UTC
Ark displays HTML source for the new user too.
Comment 8 Anne-Marie Mahfouf 2011-05-20 15:12:56 UTC
This is quite strange. What distribution are you using and what KDE version so I can inquire around to people with the setup as yours?
Comment 9 Pino Toscano 2011-06-05 17:56:46 UTC
Confirmed (no need to use ark for that, just browse a directory with man pages in konqueror, right click on one and select the preview in kmanpart option).
Comment 10 sacarde 2011-06-05 20:55:45 UTC
same problem here:

archlinux-64 with kde-4.6.3
Comment 11 Dawit Alemayehu 2011-08-10 22:30:21 UTC
This needs to be reported against kmanpart or whatever module that application belongs to. The bug has nothing to do with the man kioslave.
Comment 12 Dawit Alemayehu 2011-08-10 22:39:18 UTC
(In reply to comment #11)
> This needs to be reported against kmanpart or whatever module that application
> belongs to. The bug has nothing to do with the man kioslave.

Oops. I stand corrected. I guess kmanpart is part of the man kioslave. Ignore my comments.
Comment 13 Martin Koller 2012-08-14 22:36:24 UTC
I can not reproduce this with KDE 4.9.0
I assume this was fixed by

commit edf9a818c7dbe0441b71689779098dc30ef685d2
Author: David Faure <faure@kde.org>
Date:   Thu Jan 13 13:02:36 2011 +0000

    Fix kmanpart so that KHTML actually parses the output as HTML rather than as plain text.