From 078a0400783725cb84695719071ccec5f901786f Mon Sep 17 00:00:00 2001
From: fr69400 <82267780+fr69400@users.noreply.github.com>
Date: Tue, 30 Nov 2021 12:13:21 +0100
Subject: [PATCH] Update pdf.lib.php
---
htdocs/core/lib/pdf.lib.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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;
}