diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php index 7a78db5a14e..5763187aabd 100644 --- a/htdocs/core/lib/pdf.lib.php +++ b/htdocs/core/lib/pdf.lib.php @@ -1364,7 +1364,7 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0, $libelleproduitservice = $label; if (!empty($libelleproduitservice) && !empty($conf->global->PDF_BOLD_PRODUCT_LABEL)) { if (!dol_textishtml($libelleproduitservice)){ - $libelleproduitservice = str_replace("\n", '__N__', $libelleproduitservice); + $libelleproduitservice = str_replace("\n", '
', $libelleproduitservice); } $libelleproduitservice = ''.$libelleproduitservice.''; } @@ -1496,7 +1496,7 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0, if (!empty($ref_prodserv) && !empty($conf->global->PDF_BOLD_PRODUCT_REF_AND_PERIOD)) { if (!dol_textishtml($libelleproduitservice)){ - $libelleproduitservice = str_replace("\n", '__N__', $libelleproduitservice); + $libelleproduitservice = str_replace("\n", '
', $libelleproduitservice); } $ref_prodserv = ''.$ref_prodserv.''; // $prefix_prodserv and $ref_prodser are not HTML var @@ -1534,9 +1534,9 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0, //print '>'.$outputlangs->charset_output.','.$period; if (!empty($conf->global->PDF_BOLD_PRODUCT_REF_AND_PERIOD)) { if (!dol_textishtml($libelleproduitservice)){ - $libelleproduitservice = str_replace("\n", '__N__', $libelleproduitservice); + $libelleproduitservice = str_replace("\n", '
', $libelleproduitservice); } - $libelleproduitservice .= ''."__N__ ".$period.''; + $libelleproduitservice .= '
'.$period.''; } else { $libelleproduitservice .= "__N__".$period; }