diff --git a/htdocs/compta/bank/virement.php b/htdocs/compta/bank/virement.php
index 9dd871b2a584c085fdcb9688c8a06e42208b2756..8b6a658a40659dae1bfcfa16d5ea13ad4a0f5f5e 100644
--- a/htdocs/compta/bank/virement.php
+++ b/htdocs/compta/bank/virement.php
@@ -22,7 +22,7 @@
  *		\file       htdocs/compta/bank/virement.php
  *		\ingroup    banque
  *		\brief      Page de saisie d'un virement
- *		\version    $Id$
+ *		\version    $Id: virement.php,v 1.47 2011/07/04 10:33:56 eldy Exp $
  */
 
 require("./pre.inc.php");
@@ -138,9 +138,7 @@ $html=new Form($db);
 
 print_fiche_titre($langs->trans("BankTransfer"));
 
-if ($mesg) {
-    print "$mesg<br>";
-}
+dol_htmloutput_mesg($mesg);
 
 print $langs->trans("TransferDesc");
 print "<br><br>";
@@ -178,5 +176,5 @@ print "</form>";
 
 $db->close();
 
-llxFooter('$Date$ - $Revision$');
+llxFooter('$Date: 2011/07/04 10:33:56 $ - $Revision: 1.47 $');
 ?>
diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php
index 6ce212c314d15e8e4d6dcb3325b2b9e6defc2921..5cda1373034ee6d69b972ddc640dff7d18498fa5 100644
--- a/htdocs/lib/functions.lib.php
+++ b/htdocs/lib/functions.lib.php
@@ -29,7 +29,7 @@
  *	\file			htdocs/lib/functions.lib.php
  *	\brief			A set of functions for Dolibarr
  *					This file contains all frequently used functions.
- *	\version		$Id: functions.lib.php,v 1.537 2011/07/04 08:53:01 eldy Exp $
+ *	\version		$Id: functions.lib.php,v 1.538 2011/07/04 10:33:56 eldy Exp $
  */
 
 // For compatibility during upgrade
@@ -3880,6 +3880,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok', $keepemb
 
     if ($iserror)
     {
+        $mesgstring=preg_replace('/<\/div><div class="error">/','<br>',$mesgstring);
         $mesgstring=preg_replace('/<div class="error">/','',$mesgstring);
         $mesgstring=preg_replace('/<\/div>/','',$mesgstring);
         print get_htmloutput_mesg($mesgstring,$mesgarray,'error',$keepembedded);