Switch example in {} bracket page - change spaces..

From: Date: Fri, 09 Apr 2004 01:47:10 +0000
Subject: Switch example in {} bracket page - change spaces..
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-3208@lists.php.net to get a copy of this message
Would anyone mind if I changed the switch statement on the control stuctures page: - it currently is there to illustrate the placement of {brackets} - however it also gives a poor example (IMHO) of indentation - we dont specify that case should be indented once from case - but it is a hell of alot clearer to read.. eg. Change: ------------------CURRENT---------------------- For switch statements: <programlisting role="php"> switch (condition) { case 1:
    action1;
    break;
case 2:
    action2;
    break;
default:
    defaultaction;
    break;
} </programlisting> </para> ------------------TO---------------------- For switch statements: <programlisting role="php"> switch (condition) {
    case 1:
        action1;
        break;
    case 2:
       action2;
       break;
    default:
       defaultaction;
       break;
} </programlisting> </para>

« previous php.pear.doc (#3208) next »