diff --git a/lib/template.php b/lib/template.php
index d1439199e1ee23fb2807d08940bf40eed7eca00f..881d2a27b1e3e96becb53235a3794d0f50743962 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -121,7 +121,7 @@ function html_select_options($options, $selected, $params=array()) {
 			$label = $label[$label_name];
 		}
 		$select = in_array($value, $selected) ? ' selected="selected"' : '';
-		$html .= '<option value="' . $value . '"' . $select . '>' . $label . '</option>';
+		$html .= '<option value="' . $value . '"' . $select . '>' . $label . '</option>'."\n";
 	}
 	return $html;
 }