You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2003/08/03 11:07:47 UTC

cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Generator.java

remm        2003/08/03 02:07:47

  Modified:    jasper2/src/share/org/apache/jasper/compiler Generator.java
  Log:
  - Fix incorrect indentation of generated code, submitted by Eric Carmichael.
  
  Revision  Changes    Path
  1.193     +6 -4      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java
  
  Index: Generator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v
  retrieving revision 1.192
  retrieving revision 1.193
  diff -u -r1.192 -r1.193
  --- Generator.java	22 Jul 2003 21:04:46 -0000	1.192
  +++ Generator.java	3 Aug 2003 09:07:47 -0000	1.193
  @@ -1732,7 +1732,9 @@
   			// Generate an out.write() when see a '\n' in template
   			sb.append("\");");
   			out.println(sb.toString());
  -			out.printin();
  +                        if (i < text.length()-1) {
  +                            out.printin();
  +                        }
   			sb.setLength(initLength);
   			count = CHUNKSIZE;
   		    }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org