cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rica...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp/language/java XSPJavaProcessor.java
Date Thu, 11 May 2000 12:00:21 GMT
ricardo     00/05/11 05:00:20

  Modified:    src/org/apache/cocoon/processor/xsp/language/java
                        XSPJavaProcessor.java
  Log:
  Fixed backslash escaping in text node strings (Ulrich Mayring <ulim@denic.de>)
  
  Revision  Changes    Path
  1.10      +6 -2      xml-cocoon/src/org/apache/cocoon/processor/xsp/language/java/XSPJavaProcessor.java
  
  Index: XSPJavaProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/language/java/XSPJavaProcessor.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- XSPJavaProcessor.java	2000/05/07 00:44:05	1.9
  +++ XSPJavaProcessor.java	2000/05/11 12:00:20	1.10
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSPJavaProcessor.java,v 1.9 2000/05/07 00:44:05 ricardo Exp $ --
  +/*-- $Id: XSPJavaProcessor.java,v 1.10 2000/05/11 12:00:20 ricardo Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -62,7 +62,7 @@
   
   /**
    * @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
  - * @version $Revision: 1.9 $ $Date: 2000/05/07 00:44:05 $
  + * @version $Revision: 1.10 $ $Date: 2000/05/11 12:00:20 $
    */
   public class XSPJavaProcessor implements XSPLanguageProcessor {
     // Create class loader
  @@ -210,6 +210,9 @@
   
       for (int i = 0; i < chr.length; i++) {
         switch (chr[i]) {
  +        case '\t':
  +          buffer.append("\\t");
  +          break;
           case '\r':
             buffer.append("\\r");
             break;
  @@ -217,6 +220,7 @@
             buffer.append("\\n");
             break;
           case '"':
  +	case '\\':
             buffer.append('\\');
             // Fall through
           default:
  
  
  

Mime
View raw message