Bug 144942 - konqueror improperly dispays man pages
Summary: konqueror improperly dispays man pages
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: man (show other bugs)
Version: 3.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 170796 176377 227693 244861 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-02 02:24 UTC by Nick Soveiko
Modified: 2018-08-24 16:15 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 14.12.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Soveiko 2007-05-02 02:24:43 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
Compiler:          gcc 4.1.1 -O2 -march=athlon-xp -fomit-frame-pointer -pipe
OS:                Linux

Konqueror's man: URL is used to display man pages. Some man pages are not dispayed properly. On man:ntp.conf many keyword description are mangled.

see https://bugs.gentoo.org/show_bug.cgi?id=170157 for more info
Comment 1 Dima Ryazanov 2007-12-06 07:40:58 UTC
I ran into this a few times, too. For example, in "man:mmap", the function signature appears to be:

void *mmap(void *start, size_t lengthprot, int flags,
           int fd, off_t offset);

At first glance, it's not even obvious that "lengthprot" is totally wrong.

The correct output from "man" is:
void *mmap(void *start, size_t length, int prot, int flags,
           int fd, off_t offset);

The source of the man page contains:
.BI "void *mmap(void *" start ", size_t " length \
", int " prot ", int " flags ,
.BI "           int " fd ", off_t " offset );

So I guess Konqueror gets confused by the backslash?
Comment 2 Irina Liakh 2008-01-25 20:13:49 UTC
Incorrect render of FreeBSD sh(1) manual page (that can be found here:
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/bin/sh/sh.1?rev=1.102.2.9;content-type=text%2Fplain
)

The source

.Bl -column "XXX" "XXX" "XXX" "XXX" "XXX" -offset center -compact
.It Li & Ta Li && Ta Li ( Ta Li ) Ta Li \en
.It Li ;; Ta Li ; Ta Li | Ta Li ||

it renders as

                   & Ta && Ta ( Ta ) Ta \n 
                   ;; Ta ; Ta | Ta || 

instead of as seen in text mode:

                   &     &&    (     )     \n
                   ;;    ;     |     ||

The source

.It Li [n]>> file
append stdout (or file descriptor n) to file

views as

           [n > file ] 
               redirect stdout (or file descriptor n to file

instead of

           [n]> file     redirect stdout (or file descriptor n) to file

The source

.It Ic alias Oo Ar name Ns Oo = Ns Ar string Oc ... Oc

views as

     alias [name [= string ... ] ] 

instead of

     alias [name[=string] ...]

The source

.It Ic bind Oo Fl aeklrsv Oc Oo Ar key Oo Ar command Oc Oc

views as

     bind [-aeklrsv -] -[file ... -file ... -key -[file ... -file ... -command -] -]

instead of

     bind [-aeklrsv] [key [command]]

and so on.
Comment 3 Pino Toscano 2008-09-10 15:00:05 UTC
*** Bug 170796 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-05-01 17:24:08 UTC
Here using:

Qt: 4.5.1 (qt-copy  958974)
KDE: 4.2.71 (KDE 4.2.71 (KDE 4.3 >= 20090428))
kdelibs svn rev. 960693 / kdebase svn rev. 960693
on ArchLinux i686 - Kernel 2.6.29.1

The mmap page is shown properly and there are not such glitches.
Can anyone else confirm this ?

Thanks
Comment 5 Ivo Anjo 2009-05-05 21:41:43 UTC
Here using
KDE 4.2.71 (KDE 4.2.71 (KDE 4.3 >= 20090428))
with qt-copy 4.5.1 (rev 963686)

The manpage doesn't render correctly for me.

Dario: maybe your mmap manpage file is different? In bug #176377 (which I guess is a duplicate) I attached a manpage where this also happens, you might want to test with that one too.
Comment 6 Rolf Eike Beer 2009-05-06 00:00:43 UTC
*** Bug 176377 has been marked as a duplicate of this bug. ***
Comment 7 Matthias 2009-05-06 22:44:16 UTC
Perhaps http://websvn.kde.org/?view=rev&revision=912147 fixed this bug, too?
Comment 8 Rolf Eike Beer 2010-06-25 21:04:01 UTC
Nope, bug is still in 4.5beta2.

As you can see in man:gcc (search for -Wenum-compare) text replacements are also rendered incorrectly. At the head of that file this is defined:

.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'

Later they use \*(C+ which should give "C++" (somehow pimped) which doesn't give any output with konqueror
Comment 9 Dario Andres 2010-11-21 18:18:25 UTC
*** Bug 244861 has been marked as a duplicate of this bug. ***
Comment 10 Martin Koller 2011-01-02 13:52:56 UTC
I fixed now the \(enter) handling seen in man:mmap(2), but as this report describes also some other problems, I'll leave it open.
Comment 11 Rolf Eike Beer 2011-01-02 21:05:06 UTC
Any chance this can get into 4.6?
Comment 12 Martin Koller 2011-01-03 01:18:34 UTC
Comment #8 problem is now also fixed in trunk and branch 4.6 (as was done also for the previous fix)
Comment 13 Martin Koller 2011-01-03 02:37:48 UTC
I've now also fixed the first problem of Comment #2 with the tag-list. What's left are the "alias" and "bind" problems.
Comment 14 Ivo Anjo 2011-01-03 10:42:48 UTC
Thanks a lot for working on this!
Comment 15 Martin Koller 2011-01-06 15:29:42 UTC
*** Bug 227693 has been marked as a duplicate of this bug. ***
Comment 16 Rolf Eike Beer 2012-08-12 19:23:27 UTC
Both mmap and gcc pages render correctly for me now. Is there something left or can this bug be closed?
Comment 17 Martin Koller 2012-08-12 22:03:18 UTC
See comment #13 - alias and bind from comment #2 are still open
Comment 18 Martin Koller 2015-01-08 21:56:19 UTC
Git commit c7a5f6b1fcb3124e614cb631e1459ea735a2bcf4 by Martin Koller.
Committed on 08/01/2015 at 21:49.
Pushed by mkoller into branch 'Applications/14.12'.

Fix closing bracket output position and linebreak in SYNOPSIS section
FIXED-IN: 14.12.1

M  +15   -6    kioslave/man/man2html.cpp

http://commits.kde.org/kde-runtime/c7a5f6b1fcb3124e614cb631e1459ea735a2bcf4
Comment 19 Martin Koller 2018-08-24 16:15:01 UTC
Git commit 2452d5b5ddce6034fc66c3a96e7ece6f29e68f0f by Martin Koller.
Committed on 24/08/2018 at 15:54.
Pushed by mkoller into branch 'master'.

Fwd port: Fix closing bracket output position and linebreak in SYNOPSIS section

forward port of c7a5f6b1fcb3124e614cb631e1459ea735a2bcf4
from old kde-runtime repo

Original commit text:
Fix closing bracket output position and linebreak in SYNOPSIS section

M  +15   -6    man/man2html.cpp

https://commits.kde.org/kio-extras/2452d5b5ddce6034fc66c3a96e7ece6f29e68f0f