From a9553bb471a9941a0fd48b4edd7a9c44f47faa78 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 16 Sep 2005 13:33:23 +0000 Subject: [PATCH] * Do not append
tag in res.writeln(), only append a newline character sequence. --- src/helma/framework/ResponseBean.java | 2 +- src/helma/framework/ResponseTrans.java | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/helma/framework/ResponseBean.java b/src/helma/framework/ResponseBean.java index d481a3d6..553d9594 100644 --- a/src/helma/framework/ResponseBean.java +++ b/src/helma/framework/ResponseBean.java @@ -178,7 +178,7 @@ public class ResponseBean implements Serializable { } /** - * Write a string to the response buffer followed by an XHTML br tag. + * Write string to response buffer and append a platform dependent newline sequence. * * @param str the string to write to the response buffer */ diff --git a/src/helma/framework/ResponseTrans.java b/src/helma/framework/ResponseTrans.java index 11b9367c..8691c3e6 100644 --- a/src/helma/framework/ResponseTrans.java +++ b/src/helma/framework/ResponseTrans.java @@ -285,7 +285,7 @@ public final class ResponseTrans implements Serializable { } /** - * Utility function that appends a
to whatever is written. + * Write object to response buffer and append a platform dependent newline sequence. */ public synchronized void writeln(Object what) { write(what); @@ -295,11 +295,6 @@ public final class ResponseTrans implements Serializable { buffer = new StringBuffer(INITIAL_BUFFER_SIZE); } - // only append
tag if we know this is an HTML/XHTML document. - // even then should we use
for HTML 4.0 and below. Well well well... - if ("text/html".equals(contentType) || "application/xhtml+xml".equals(contentType)) { - buffer.append("
"); - } buffer.append(newLine); }