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

List:       kde-commits
Subject:    KDE/kdebase/runtime/kioslave/man
From:       Martin Koller <kollix () aon ! at>
Date:       2011-01-01 18:27:06
Message-ID: 20110101182706.6948FAC8AE () svn ! kde ! org
[Download RAW message or body]

SVN commit 1210676 by mkoller:

ignore some other escape sequences (detected with man:roff)


 M  +7 -3      man2html.cpp  


--- trunk/KDE/kdebase/runtime/kioslave/man/man2html.cpp #1210675:1210676
@@ -1660,7 +1660,7 @@
 }
 
 // ### TODO known missing escapes from groff(7):
-// ### TODO \& \! \) \: \R
+// ### TODO \R
 
 static char *scan_escape_direct( char *c, QByteArray& cstr )
 {
@@ -1679,6 +1679,9 @@
     case '|': // half-non-breakable-space
     case '^': // quarter-non-breakable-space
         cstr = "&nbsp;"; curpos++; break;
+    case ':': break;  // ignore optional line break
+    case ',': break;  //  left italic correction, always a zero motion
+    case '/': cstr = " "; curpos++; break;  // italic correction, i.e. a small piece \
of horizontal motion  case '"': SKIPEOL; c--; break;
     // ### TODO \# like \" but does not ignore the end of line (groff(7))
     case '$':
@@ -1708,8 +1711,9 @@
     case 'r':
     case 'u':
     case '\n':
-    case '&':
-        cstr = ""; break;
+    case '&': // Non-printing, zero width character
+    case ')': // Transparent non-printing zero width character
+        break;
     case '(':
     case '[':
     case 'C':


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

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