ARNULFO Franck <[EMAIL PROTECTED]> writes:

> Hello,
> 
> Just my 0.02 French Franc with a little javadoc correction
> org.apache.velocity.app.VelocityFormatter
> 
> --- VelocityFormatter.java      Fri Aug  3 07:11:51 2001
> +++ VelocityFormatter.java.new  Fri Aug  3 07:13:27 2001
> @@ -344,7 +344,7 @@
>       *
>       * <code><pre>
>       * &lt;table&gt;
> -     * $formatter.makeAlternator(rowcolor, "#c0c0c0", "#e0e0e0")
> +     * $formatter.makeAlternator("rowcolor", "#c0c0c0", "#e0e0e0")
>       * #foreach $item in $items
>       * #begin
>       * &lt;tr&gt;&lt;td
> bgcolor="$rowcolor"&gt;$item.Name&lt;/td&gt;&lt;/tr&gt;
> 
> 
> work better with " ;-)

Thanks for pointing this out, Franck.  The fix turned out to be:

Index: VelocityFormatter.java
===================================================================
RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/app/tools/VelocityFormatter.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -u -r1.2 -r1.3
--- VelocityFormatter.java      2001/03/05 11:44:54     1.2
+++ VelocityFormatter.java      2001/08/03 19:22:16     1.3
@@ -79,7 +79,7 @@
  * </pre></code>
  * 
  * @author <a href="[EMAIL PROTECTED]">Sean Legassick</a>
- * @version $Id: VelocityFormatter.java,v 1.2 2001/03/05 11:44:54 jvanzyl Exp $
+ * @version $Id: VelocityFormatter.java,v 1.3 2001/08/03 19:22:16 dlr Exp $
  */
 public class VelocityFormatter
 {
@@ -344,7 +344,7 @@
      *
      * <code><pre>
      * &lt;table&gt;
-     * $formatter.makeAlternator(rowcolor, "#c0c0c0", "#e0e0e0")
+     * $formatter.makeAlternator($rowcolor, "#c0c0c0", "#e0e0e0")
      * #foreach $item in $items
      * #begin
      * &lt;tr&gt;&lt;td bgcolor="$rowcolor"&gt;$item.Name&lt;/td&gt;&lt;/tr&gt;

Reply via email to