delete margin-top TCPDF <u> (#29737)

* delete margin-top TCPDF <u>

* pre-commit
This commit is contained in:
atm-jonathan 2024-05-22 17:30:27 +02:00 committed by GitHub
parent b3900964b5
commit a26113bcb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1449,7 +1449,11 @@ function pdf_writelinedesc(&$pdf, $object, $i, $outputlangs, $w, $h, $posx, $pos
$nbrep = 0;
$labelproductservice = preg_replace('/(<img[^>]*src=")([^"]*)(&amp;)([^"]*")/', '\1\2&\4', $labelproductservice, -1, $nbrep);
//var_dump($labelproductservice);exit;
if (getDolGlobalString('MARGIN_TOP_ZERO_UL')) {
$pdf->setListIndentWidth(5);
$TMarginList = ['ul' => [['h'=>0.1, ],['h'=>0.1, ]], 'li' => [['h'=>0.1, ],],];
$pdf->setHtmlVSpace($TMarginList);
}
// Description
$pdf->writeHTMLCell($w, $h, $posx, $posy, $outputlangs->convToOutputCharset($labelproductservice), 0, 1, false, true, 'J', true);