Bug 227693

Summary: Broken handling of manpages containing ".BI ... \" lines
Product: [Frameworks and Libraries] kio Reporter: Eckhart Wörner <ewoerner>
Component: manAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kollix
Priority: NOR    
Version: 4.4   
Target Milestone: ---   
Platform: Debian testing   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Eckhart Wörner 2010-02-19 17:06:55 UTC
Version:            (using KDE 4.4.0)
Installed from:    Debian testing/unstable Packages

This bug has been copied over from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557364 and has been verified to still exist in KDE SC 4.4.0

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.
Comment 1 Martin Koller 2011-01-06 15:29:42 UTC

*** This bug has been marked as a duplicate of bug 144942 ***