* try the direct way
[m6w6/ext-http] / funcsummary.php
index f5330e69e9bff18e44e6ed98118b4274bf0ee3b7..b81982748e12c989a0187149366bfdd1fc4b5ab6 100644 (file)
@@ -53,6 +53,9 @@ $preface = <<<_PREFACE
             width: auto;
             float: left;
         }
+        p, pre {
+            clear: both;
+        }
         p br, pre code br { 
             display: block; 
         } 
@@ -65,6 +68,7 @@ $footer = <<<_FOOTER
     <p><b>Generated at: %s</b></p>
 </body>
 </html>
+
 _FOOTER;
 
 if ($_SERVER['argc'] < 2) {
@@ -77,11 +81,13 @@ foreach (array_slice($_SERVER['argv'], 1) as $f) {
     if (mf($f, $m)) {
         printf("<h1>%s</h1>\n", basename($f));
         foreach ($m[1] as $i => $p) {
-            printf("<h2 id=\"%s\">%s</h2>\n%s\n", $m[4][$i], $p, ff($m[3][$i]));
+            printf("<h2 id=\"%s\">%s</h2>\n%s\n", 
+                str_replace(', ', '_', $m[4][$i]), $p, ff($m[3][$i]));
         }
         print "<hr noshade>\n";
     }
 }
 
 printf($footer, date('r'));
-?>
\ No newline at end of file
+?>
+