diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 3ef7cd72734..10b06dfda38 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -3212,13 +3212,14 @@ function dol_textishtml($msg,$option=0) } else { - if (eregi('SetFont('Arial','', 9); // Dans boucle pour gérer multi-page - - $pdf->SetXY ($this->posxdesc-1, $curY); - $pdf->MultiCell(108, 4, $libelleproduitservice, 0, 'J'); + + $pdf->writeHTMLCell(108, 4, $this->posxdesc-1, $curY, $libelleproduitservice, 0, 1); + + $pdf->SetFont('Arial','', 9); // On repositionne la police par défaut $nexY = $pdf->GetY(); /*