didou Tue Dec 28 05:23:22 2004 EDT
Modified files: /phpdoc/scripts xml_proto.php Log: Fix spacing in the generated files http://cvs.php.net/diff.php/phpdoc/scripts/xml_proto.php?r1=1.16&r2=1.17&ty=u Index: phpdoc/scripts/xml_proto.php diff -u phpdoc/scripts/xml_proto.php:1.16 phpdoc/scripts/xml_proto.php:1.17 --- phpdoc/scripts/xml_proto.php:1.16 Fri Sep 10 09:32:35 2004 +++ phpdoc/scripts/xml_proto.php Tue Dec 28 05:23:22 2004 @@ -16,7 +16,7 @@ | Authors: Brad House <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: xml_proto.php,v 1.16 2004/09/10 13:32:35 vrana Exp $ + $Id: xml_proto.php,v 1.17 2004/12/28 10:23:22 didou Exp $ */ /* @@ -140,29 +140,29 @@ fwrite($fp, "<?xml version='1.0' encoding='iso-8859-1'?>\n" . "<!-- $" . "Revision: 1.1 " . "$ -->\n" . "<!-- Generated by xml_proto.php v" . $version . ". Found in /scripts directory of phpdoc. -->\n" . - " <reference id=\"ref." . $extension_name . "\">\n" . - " <title>$extension_name Functions</title>\n" . - " <titleabbrev>$extension_name</titleabbrev>\n" . + "<reference id=\"ref." . $extension_name . "\">\n" . + " <title>$extension_name Functions</title>\n" . + " <titleabbrev>$extension_name</titleabbrev>\n" . "\n" . - " <partintro>\n" . - " <section id=\"" . $extension_name . ".intro\">\n" . + " <partintro>\n" . + " <section id=\"" . $extension_name . ".intro\">\n" . " &reftitle.intro;\n" . - " <para>\n" . - " This is the " . $extension_name . " extension. It\n" . - " currently only lists the proto definitions.\n" . - " </para>\n" . - " </section>\n" . - " <section id=\"" . $extension_name . ".installation\">\n" . + " <para>\n" . + " This is the " . $extension_name . " extension. It\n" . + " currently only lists the proto definitions.\n" . + " </para>\n" . + " </section>\n" . + " <section id=\"" . $extension_name . ".installation\">\n" . " &reftitle.install;\n" . - " <para>\n" . - " To be written. Probably running configure with the\n" . - " <option role=\"configure\">--with-" . $extension_name . "</option>\n" . - " will properly enable this module.\n" . - " </para>\n" . - " </section>\n" . - " </partintro>\n" . + " <para>\n" . + " To be written. Probably running configure with the\n" . + " <option role=\"configure\">--with-" . $extension_name . "</option>\n" . + " will properly enable this module.\n" . + " </para>\n" . + " </section>\n" . + " </partintro>\n" . " &reference." . $extension_name . ".functions;\n" . - " </reference>\n" . + "</reference>\n" . "<!-- Keep this comment at the end of the file\n" . "Local variables:\n" . "mode: sgml\n" . @@ -209,20 +209,20 @@ $purpose = trim($funclist[$i]["purpose"]); $functype = trim($funclist[$i]["function_type"]); - fwrite($fp, "<?xml version='1.0' encoding='iso-8859-1'?>\n" . + fwrite($fp, "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n" . "<!-- $" . "Revision: 1.1 $ -->\n" . "<!-- Generated by xml_proto.php v" . $version . ". Found in /scripts directory of phpdoc. -->\n" . - " <refentry id=\"function." . $fixname . "\">\n" . - " <refnamediv>\n" . - " <refname>$funcname</refname>\n" . - " <refpurpose>\n" . - " $purpose\n" . - " </refpurpose>\n" . - " </refnamediv>\n" . - " <refsect1>\n" . - " <title>Description</title>\n" . - " <methodsynopsis>\n" . - " <type>$functype</type><methodname>$funcname</methodname>\n"); + "<refentry id=\"function." . $fixname . "\">\n" . + " <refnamediv>\n" . + " <refname>$funcname</refname>\n" . + " <refpurpose>\n" . + " $purpose\n" . + " </refpurpose>\n" . + " </refnamediv>\n" . + " <refsect1 role=\"description\">\n" . + " &reftitle.description;\n" . + " <methodsynopsis>\n" . + " <type>$functype</type><methodname>$funcname</methodname>\n"); for ($j=0; $j<$funclist[$i]["num_args"]; $j++) { $argtype = $funclist[$i]["args"][$j]["type"]; @@ -232,17 +232,17 @@ $argname = substr($argname, 1); } $isopt=$funclist[$i]["args"][$j]["isopt"]; - fwrite($fp, " <methodparam" . ($isopt ? " choice=\"opt\"" : "") . "><type>$argtype</type><parameter" . ($isref ? " role=\"reference\"" : "") . ">$argname</parameter></methodparam>\n"); + fwrite($fp, " <methodparam" . ($isopt ? " choice=\"opt\"" : "") . "><type>$argtype</type><parameter" . ($isref ? " role=\"reference\"" : "") . ">$argname</parameter></methodparam>\n"); } if ($funclist[$i]["num_args"] == 0){ - fwrite($fp, " <void/>\n"); + fwrite($fp, " <void/>\n"); } - fwrite($fp, " </methodsynopsis>\n\n" . - " &warn.undocumented.func;\n\n" . - " </refsect1>\n" . - " </refentry>\n" . + fwrite($fp, " </methodsynopsis>\n\n" . + " &warn.undocumented.func;\n\n" . + " </refsect1>\n" . + "</refentry>\n" . "\n" . "<!-- Keep this comment at the end of the file\n" . "Local variables:\n" . @@ -792,5 +792,3 @@ f) Report problems to phpdoc@lists.php.net NOTES; ?> - -