cvs: peardoc /en/chapters standards.xml
| From: | Daniel Convissor | Date: | Sat, 12 Jun 2004 14:11:38 +0000 |
| Subject: | cvs: peardoc /en/chapters standards.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4386@lists.php.net to get a copy of this message | ||
danielc Sat Jun 12 10:11:38 2004 EDT
Modified files:
/peardoc/en/chapters standards.xml
Log:
Add info about file formatting as per pear-dev discussion.
http://cvs.php.net/diff.php/peardoc/en/chapters/standards.xml?r1=1.24&r2=1.25&ty=u
Index: peardoc/en/chapters/standards.xml
diff -u peardoc/en/chapters/standards.xml:1.24 peardoc/en/chapters/standards.xml:1.25
--- peardoc/en/chapters/standards.xml:1.24 Mon May 31 00:25:36 2004
+++ peardoc/en/chapters/standards.xml Sat Jun 12 10:11:38 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.24 $ -->
+<!-- $Revision: 1.25 $ -->
<chapter id="standards">
<title>Coding Standards</title>
@@ -463,6 +463,51 @@
</sect2>
</sect1>
+ <sect1 id="standards.file">
+ <title>File Formats</title>
+ <para>
+ All scripts contributed to PEAR must:
+ <itemizedlist>
+ <listitem>
+ <para>
+ Be stored as ASCII text
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Use ISO-8859-1 character encoding
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Be Unix formatted
+ </para>
+ <para>
+ This means two things:
+ </para>
+ <para>
+ 1) Lines must end only with a line feed (<literal>LF</literal>).
+ Line feeds are represented as
+ ordinal <literal>10</literal>,
+ octal <literal>012</literal> and
+ hex <literal>0A</literal>.
+ Do not use carriage returns (<literal>CR</literal>)
+ like Macintosh computers do
+ or the carriage return/line feed combination
+ (<literal>CRLF</literal>) like Windows computers do.
+ </para>
+ <para>
+ 2) There should be <emphasis>one</emphasis> line feed
+ after the closing PHP tag (<literal>?></literal>).
+ This means that when the cursor is at the very end
+ of the file, it should be <emphasis>one</emphasis>
+ line below the closing PHP tag.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </sect1>
+
<sect1 id="standards.sample">
<title>Sample File</title>
<para>
@@ -515,7 +560,7 @@
// | Your Name <you@example.com> |
// +----------------------------------------------------------------------+
//
-// $Id: standards.xml,v 1.24 2004/05/31 04:25:36 danielc Exp $
+// $Id: standards.xml,v 1.25 2004/06/12 14:11:38 danielc Exp $
require_once 'PEAR.php';
@@ -567,7 +612,7 @@
* @category categoryname
* @package packagename
* @author Original Author <author@example.com>
- * @version $Id: standards.xml,v 1.24 2004/05/31 04:25:36 danielc Exp $
+ * @version $Id: standards.xml,v 1.25 2004/06/12 14:11:38 danielc Exp $
* @access public
* @see NetOther, Net_Sample::Net_Sample()
* @since Class available since Release 1.2.0