Bug 119223 - text misaligned in man:/usr/share/man/man5/proc.5.gz
Summary: text misaligned in man:/usr/share/man/man5/proc.5.gz
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: man (show other bugs)
Version: 3.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-30 11:04 UTC by Greg Martyn
Modified: 2007-12-18 11:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Martyn 2005-12-30 11:04:50 UTC
Version:           man:/ protocol (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs

When viewing the proc.5 manpage in konqueror using the url man:/usr/share/man/man5/proc.5.gz, some of the text is misaligned. Specifically, under the '/proc/[number]/stat' section, the line:
'tty_nr %d The tty the process uses.'

should not be indented. It isn't indented when using the command, 'man proc.5'.
Comment 1 Greg Martyn 2005-12-30 11:05:44 UTC
Additionally, "The tty the process uses" should be indented and on the next line.
Comment 2 Greg Martyn 2005-12-30 11:07:55 UTC
Same thing happens with the "0 %ld This value is hard coded to 0 as a placeholder for a removed field." line
Comment 3 Nicolas Goutte 2005-12-30 21:50:48 UTC
Good, the problem is that there are comment lines after the line having the .TP sequence.
Comment 4 Nicolas Goutte 2005-12-30 21:52:11 UTC
SVN commit 492712 by goutte:

HACK: skip comment line after the line having a .TP sequence
BUG:119223


 M  +7 -1      man2html.cpp  


--- branches/KDE/3.5/kdebase/kioslave/man/man2html.cpp #492711:492712
@@ -3861,8 +3861,14 @@
                     /* somewhere a definition ends with '.TP' */
                     if (!*c)
                         still_dd=true;
-                    else
+                    else 
                     {
+                        // HACK for proc(5)
+                        while (c[0]=='.' && c[1]=='\\' && c[2]=='\"')
+                        {
+                            // We have a comment, so skip the line
+                            c=skip_till_newline(c);
+                        }
                         c=scan_troff(c,1,NULL);
                         out_html("<DD>");
                     }