#557364 [konqueror] Broken handling of manpages containing ".BI ... \" lines

Package:
konqueror
Source:
konqueror
Description:
advanced file manager, web browser and document viewer
Submitter:
Stefan Hristov
Date:
2015-01-12 16:45:38 UTC
Severity:
normal
#557364#5
Date:
2009-11-21 18:46:09 UTC
From:
To:
--- Please enter the report below this line. ---

The pages from manpages-dev package (sections 2 & 3) have lines starting with
.BI in Synopsis section, used to pretty-format function declarations.

Sometimes these lines are terminated with a backslash, for example in the man
pages for msgsnd, wait, mmap, ipc, setbuf, dbopen, etc. There are 46 files in
section 2, and 169 in section 3 with lines matching the pattern "^.BI.*\\$"

When displaying one of these man pages with KDE Man Page Viewer the function
declaration is corrupted. For example, instead of:

        int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg);

        ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp,
                      int msgflg);

there is:

	int msgsnd(int msqid, const void *msgp, size_t msgszmsgflg);

	ssize_t msgrcv(int msqid, void *msgp, size_t msgszmsgtyp,
               int msgflg);

More precisely, looking at the man page source one could see that the quoted
string after the \ on the previous line is lost.

Debian Release: squeeze/sid
  650 testing         ftp.bg.debian.org
--- Package information. ---
Depends                       (Version) | Installed
=======================================-+-==============
kdebase-runtime            (>= 4:4.3.0) | 4:4.3.2-1
kdelibs5                   (>= 4:4.3.1) | 4:4.3.2-2
libc6                        (>= 2.2.5) | 2.10.1-7
libkonq5                   (>= 4:4.3.1) | 4:4.3.1-1
libkonqsidebarplugin4      (>= 4:4.3.1) | 4:4.3.1-1
libqt4-dbus                (>= 4:4.5.2) | 4:4.5.3-4
libqt4-qt3support          (>= 4:4.5.2) | 4:4.5.3-4
libqt4-xml                 (>= 4:4.5.2) | 4:4.5.3-4
libqtcore4                 (>= 4:4.5.2) | 4:4.5.3-4
libqtgui4                  (>= 4:4.5.2) | 4:4.5.3-4
libstdc++6                   (>= 4.1.1) | 4.4.1-4
libx11-6                                | 2:1.2.2-1
kdebase-data              (= 4:4.3.1-1) | 4:4.3.1-1
kdebase-bin               (= 4:4.3.1-1) | 4:4.3.1-1
install-info                            | 4.13a.dfsg.1-5


Recommends                  (Version) | Installed
=====================================-+-==============
konqueror-nsplugins     (= 4:4.3.1-1) | 4:4.3.1-1
dolphin                               | 4:4.3.1-1


Suggests           (Version) | Installed
============================-+-============
konq-plugins     (>= 4:4.1~) | 4:4.3.0-1