diff --git a/src/helma/framework/ResponseTrans.java b/src/helma/framework/ResponseTrans.java index cdba659c..11b9367c 100644 --- a/src/helma/framework/ResponseTrans.java +++ b/src/helma/framework/ResponseTrans.java @@ -295,7 +295,11 @@ public final class ResponseTrans implements Serializable { buffer = new StringBuffer(INITIAL_BUFFER_SIZE); } - buffer.append("
"); + // 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); }