dlr 2002/10/10 09:47:00
Modified: src/java/org/apache/velocity/runtime/directive Parse.java
Log:
Broke long lines -- nothing to see here, move along.
Revision Changes Path
1.24 +16 -9
jakarta-velocity/src/java/org/apache/velocity/runtime/directive/Parse.java
Index: Parse.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/directive/Parse.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -u -r1.23 -r1.24
--- Parse.java 22 Oct 2001 03:53:24 -0000 1.23
+++ Parse.java 10 Oct 2002 16:47:00 -0000 1.24
@@ -118,7 +118,8 @@
*/
public boolean render( InternalContextAdapter context,
Writer writer, Node node)
- throws IOException, ResourceNotFoundException, ParseErrorException,
MethodInvocationException
+ throws IOException, ResourceNotFoundException, ParseErrorException,
+ MethodInvocationException
{
/*
* did we get an argument?
@@ -170,8 +171,9 @@
Resource current = context.getCurrentResource();
/*
- * get the resource, and assume that we use the encoding of the current
template
- * the 'current resource' can be null if we are processing a stream....
+ * get the resource, and assume that we use the encoding of
+ * the current template the 'current resource' can be null if
+ * we are processing a stream....
*/
String encoding = null;
@@ -182,7 +184,8 @@
}
else
{
- encoding = (String) rsvc.getProperty( RuntimeConstants.INPUT_ENCODING);
+ encoding =
+ (String) rsvc.getProperty(RuntimeConstants.INPUT_ENCODING);
}
/*
@@ -201,8 +204,10 @@
* the arg wasn't found. Note it and throw
*/
- rsvc.error("#parse(): cannot find template '" + arg + "', called from
template "
- + context.getCurrentTemplateName() + " at (" + getLine() + ",
" + getColumn() + ")" );
+ rsvc.error("#parse(): cannot find template '" + arg +
+ "', called from template " +
+ context.getCurrentTemplateName() + " at (" +
+ getLine() + ", " + getColumn() + ")" );
throw rnfe;
}
catch ( ParseErrorException pee )
@@ -212,8 +217,10 @@
* note it and throw
*/
- rsvc.error("#parse(): syntax error in #parse()-ed template '" + arg +
"', called from template "
- + context.getCurrentTemplateName() + " at (" + getLine() + ",
" + getColumn() + ")" );
+ rsvc.error("#parse(): syntax error in #parse()-ed template '" +
+ arg + "', called from template " +
+ context.getCurrentTemplateName() + " at (" +
+ getLine() + ", " + getColumn() + ")" );
throw pee;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>