From edaacb5256a2d03a53f99ba81ae7ccfc72a153ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Fri, 28 Aug 2009 17:41:17 +0200 Subject: [PATCH] Revert hack for for improve center paragraph in thml2pdf library. Don't run well --- main/inc/lib/html2pdf/html2pdf.class.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/main/inc/lib/html2pdf/html2pdf.class.php b/main/inc/lib/html2pdf/html2pdf.class.php index 2c68f50885..ac39834d7c 100644 --- a/main/inc/lib/html2pdf/html2pdf.class.php +++ b/main/inc/lib/html2pdf/html2pdf.class.php @@ -2829,18 +2829,7 @@ if (!defined('__CLASS_HTML2PDF__')) $this->style->setPosition($this->pdf->x, $this->pdf->y); $this->style->FontSet(); - if ($this->style->value['text-indent']>0) $this->pdf->x+= $this->style->value['text-indent']; - - // Hack for improve center paragraph by Juan Carlos Raņa - $parent_w = $this->pdf->w - $this->pdf->lMargin - $this->pdf->rMargin; - if ($parent_w>$w) - { - if ($this->style->value['text-align']=='center') $this->pdf->x = $this->pdf->x + ($parent_w-$w)*0.5; - } - - $this->style->setPosition($this->pdf->x, $this->pdf->y); - // - + if ($this->style->value['text-indent']>0) $this->pdf->x+= $this->style->value['text-indent']; return true; }