diff --git a/modules/casserver/www/serviceValidate.php b/modules/casserver/www/serviceValidate.php
index 23df67a20f5120463c6ba3f57b1784003a3f795c..4b767ede7a5246b0ff9cbfa09ba51f9be7df912c 100644
--- a/modules/casserver/www/serviceValidate.php
+++ b/modules/casserver/www/serviceValidate.php
@@ -56,7 +56,7 @@ function returnResponse($value, $content = '', $attributes = array()) {
 		foreach ($attributes as $attributename => $attributelist) {
 			$attr = htmlentities($attributename);
 			foreach ($attributelist as $attributevalue) {
-				$attributesxml .= "<cas:$attr>" . htmlentities($attributevalue) . "</cas:$attr>";
+				$attributesxml .= "<cas:$attr>" . htmlentities($attributevalue) . "</cas:$attr>\n";
 			}
 		}
 		if (sizeof($attributes)) $attributesxml = '<cas:attributes>' . $attributesxml . '</cas:attributes>';