Summary: | konqueror improperly dispays man pages | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Nick Soveiko <kde-bugzilla> |
Component: | man | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andresbajotierra, ewoerner, ivo, kde, kollix, mail, philipp |
Priority: | NOR | ||
Version: | 3.5 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kio-extras/2452d5b5ddce6034fc66c3a96e7ece6f29e68f0f | Version Fixed In: | 14.12.1 |
Description
Nick Soveiko
2007-05-02 02:24:43 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? 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. *** Bug 170796 has been marked as a duplicate of this bug. *** 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 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. *** Bug 176377 has been marked as a duplicate of this bug. *** Perhaps http://websvn.kde.org/?view=rev&revision=912147 fixed this bug, too? 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 *** Bug 244861 has been marked as a duplicate of this bug. *** 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. Any chance this can get into 4.6? Comment #8 problem is now also fixed in trunk and branch 4.6 (as was done also for the previous fix) I've now also fixed the first problem of Comment #2 with the tag-list. What's left are the "alias" and "bind" problems. Thanks a lot for working on this! *** Bug 227693 has been marked as a duplicate of this bug. *** Both mmap and gcc pages render correctly for me now. Is there something left or can this bug be closed? See comment #13 - alias and bind from comment #2 are still open 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 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 |