diff --git a/lib/front/front.class.php b/lib/front/front.class.php
index 95dacca716..2882cc06a4 100644
--- a/lib/front/front.class.php
+++ b/lib/front/front.class.php
@@ -77,13 +77,15 @@ class html
* @param string $title the link title.
* @param string $target the target window
* @param string $misc other params.
+ * @param boolean $newline
* @return string
*/
- static public function a($href = '', $title = '', $target = "_self", $misc = '')
+ static public function a($href = '', $title = '', $target = "_self", $misc = '', $newline = true)
{
if(empty($title)) $title = $href;
- if($target == '_self') return "$title\n";
- return "$title\n";
+ $newline = $newline ? "\n" : '';
+ if($target == '_self') return "$title$newline";
+ return "$title$newline";
}
/**