velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@locus.apache.org
Subject cvs commit: jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node ASTText.java
Date Sun, 05 Nov 2000 05:47:48 GMT
geirm       00/11/04 21:47:47

  Modified:    src/java/org/apache/velocity/runtime/parser/node
                        ASTText.java
  Log:
  Support for symmetrization of DIRECTIVE and REFERENCE.  See the 1.20 Parser.jjt
  
  Revision  Changes    Path
  1.4       +3 -1      jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/ASTText.java
  
  Index: ASTText.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/ASTText.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ASTText.java	2000/11/05 03:18:24	1.3
  +++ ASTText.java	2000/11/05 05:47:47	1.4
  @@ -40,8 +40,10 @@
    
           text =  getFirstToken().image;
          
  -        if (NodeUtils.specialText(getFirstToken()).startsWith("$") )
  +        if (NodeUtils.specialText(getFirstToken()).startsWith("$")) 
               text = "$" + text;
  +        else if ( NodeUtils.specialText(getFirstToken()).startsWith("#") )
  +            text = "#" + text;
           
           return data;
       }
  
  
  

Mime
View raw message