Author: sebb
Date: Tue Aug 11 12:47:54 2009
New Revision: 803092

URL: http://svn.apache.org/viewvc?rev=803092&view=rev
Log:
Tidy control examples

Modified:
    commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml

Modified: commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml?rev=803092&r1=803091&r2=803092&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml (original)
+++ commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml Tue Aug 11 
12:47:54 2009
@@ -445,14 +445,20 @@
           <td>if</td>
           <td>
             Classic, if/else statement, e.g.
-            <code>if ((x * 2) == 5) {y = 1;} else {y = 2;}</code>
+            <source>if ((x * 2) == 5) {
+    y = 1;
+} else {
+    y = 2;
+}</source>
           </td>
         </tr>
         <tr>
           <td>for</td>
           <td>
             Loop through items of an Array, Collection, Map, Iterator or 
Enumeration, e.g.
-            <code>for(item : list) { x = x + item; }</code>
+            <source>for(item : list) {
+    x = x + item; 
+}</source>
             Where <code>item</code> and <code>list</code> are variables.
             The JEXL 1.1 syntax using <code>foreach(item in list)</code> is 
now <strong>deprecated</strong>.
           </td>
@@ -461,7 +467,9 @@
           <td>while</td>
           <td>
             Loop until a condition is satisfied, e.g.
-            <code>while (x lt 10) { x = x + 2; }</code>
+            <source>while (x lt 10) {
+    x = x + 2; 
+}</source>
           </td>
         </tr>
       </table>


Reply via email to