Index: phpdoc/make_chm.php diff -u phpdoc/make_chm.php:1.14 phpdoc/make_chm.php:1.15 --- phpdoc/make_chm.php:1.14 Mon Sep 3 12:30:37 2001 +++ phpdoc/make_chm.php Sat Sep 8 11:17:25 2001 @@ -13,19 +13,17 @@ $original_index = getenv("PHP_HELP_COMPILE_INDEX"); // header for index and toc -$header = ' - - -
- - - - - +- ';
MakeProjectFile();
MakeContentFiles();
@@ -43,8 +41,8 @@
$index = fopen("php_manual_$language.hhk", "w");
// Write out file headers
- fputs ($toc, $header);
- fputs ($index, $header);
+ fputs($toc, $header);
+ fputs($index, $header);
// Read original index file and drop out newlines
$index_a = file("$fancydir/$original_index");
@@ -52,7 +50,7 @@
$ijoin = preg_replace("/[\r|\n]{1,2}/", " ", $ijoin);
// Print out the objects, autoparsing won't find
- SiteMapObj($manual_title, $indexfile, " ", $toc, 21);
+ SiteMapObj($manual_title, $indexfile, " ", $toc, 21);
IndexObj($manual_title, $indexfile, $index);
// Find the name of the Table of Contents
@@ -61,7 +59,7 @@
if (empty($match[1])) { // Fallback
$match[1] = "Table of Contents";
}
- SiteMapObj($match[1], $original_index, " ", $toc, 21);
+ SiteMapObj($match[1], $original_index, " ", $toc, 21);
IndexObj($match[1], $original_index, $index);
}
@@ -70,18 +68,18 @@
if (empty($match[1])) { // Fallback
$match[1] = "Preface";
}
- SiteMapObj($match[1], "preface.html", " ", $toc);
+ SiteMapObj($match[1], "preface.html", " ", $toc);
IndexObj($match[1], "preface.html", $index);
// Find the name of the Preface/About this Manual
- fputs($toc, "\n
- ");
+ fputs($toc, "\n
- ");
preg_match('|(.*)|U', $ijoin, $match);
if (empty($match[1])) { // Fallback
$match[1]="About this Manual";
}
- SiteMapObj($match[1], "preface.html#about", " ", $toc);
+ SiteMapObj($match[1], "preface.html#about", " ", $toc);
IndexObj($match[1], "preface.html#about", $index);
- fputs($toc, "
- \n");
+ fputs($toc, "\n
- \n");
}
//preg_match ("/>([0-9]+|[IVXL]+|[A-Z])\. ([^<]+)/", $index_a[$i+2], $matches);
$schapter["title"] = $matches[1];
- SiteMapObj($schapter["title"], $schapter["html"], " ", $toc);
+ SiteMapObj($schapter["title"], $schapter["html"], " ", $toc);
IndexObj($chapter["title"], $schapter["html"], $index);
DoFile($schapter["html"], $toc, $index);
}
}
- fputs($toc, "

