diff --git a/src/helma/framework/ResponseTrans.java b/src/helma/framework/ResponseTrans.java index b56291db..494f3c06 100644 --- a/src/helma/framework/ResponseTrans.java +++ b/src/helma/framework/ResponseTrans.java @@ -98,6 +98,17 @@ public class ResponseTrans implements Externalizable { } } + /** + * Utility function that appends a
to whatever is written + */ + public void writeln (Object what) { + if (buffer == null) + buffer = new StringBuffer (512); + if (what != null) + buffer.append (what.toString ()); + buffer.append ("
\r\n"); + } + /** * Replace special characters with entities, including <, > and ", thus allowing * no HTML tags.