cvs: pear /PHPDoc index.php
| From: | Hayk Chamyan | Date: | Thu, 20 Dec 2001 10:53:20 +0000 |
| Subject: | cvs: pear /PHPDoc index.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1627@lists.php.net to get a copy of this message | ||
hayk Thu Dec 20 05:53:20 2001 EDT
Modified files:
/pear/PHPDoc index.php
Log:
* Added the PHPDOC_ALLOWEDHTMLTAGS constant (html tags allowed in documentation).
* PHPDOC_LINEBREAK is now calculated automatically.
Index: pear/PHPDoc/index.php
diff -u pear/PHPDoc/index.php:1.1 pear/PHPDoc/index.php:1.2
--- pear/PHPDoc/index.php:1.1 Tue May 8 00:48:35 2001
+++ pear/PHPDoc/index.php Thu Dec 20 05:53:20 2001
@@ -40,7 +40,12 @@
// Directory with include files
define("PHPDOC_INCLUDE_DIR", "c:/www/apache/doc/");
// Important: set this to the Linebreak sign of your system!
- define("PHPDOC_LINEBREAK", "\r\n");
+ if (substr(php_uname(), 0, 7) == "Windows") $lnbreak = "\r\n";
+ else $lnbreak = "\n";
+ define("PHPDOC_LINEBREAK", $lnbreak);
+
+ // Html tags allowed to be used in docs
+ define("PHPDOC_ALLOWEDHTMLTAGS",
"<a>,<i>,<b>,<pre>,<ul>,<li>,<br>,<code>");
// main PHPDoc Include File
include("./prepend.php");