[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/kioslave/man
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2005-12-30 20:53:54
Message-ID: 1135976034.430203.18558.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 492713 by goutte:

HACK: skip comment lines after the line having a .TP sequence
(Foreward port of revision 492712; bug #119223; might not compile)


 M  +7 -1      man2html.cpp  


--- trunk/KDE/kdebase/kioslave/man/man2html.cpp #492712:492713
@@ -3848,8 +3848,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>");
                     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic