From 749018f44d979c4364616f0d05a5bf397f721721 Mon Sep 17 00:00:00 2001 From: Nikki DelRosso Date: Mon, 11 Dec 2017 11:22:32 -0700 Subject: [PATCH] Handle side padding correctly on writeHTML Previously, right and left padding for HTML content were always equal on PDF, regardless of actual setting. --- tcpdf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpdf.php b/tcpdf.php index 65196e7..b1d0db6 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -17176,10 +17176,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: if ($cell) { if ($this->rtl) { $this->x -= $this->cell_padding['R']; - $this->lMargin += $this->cell_padding['R']; + $this->lMargin += $this->cell_padding['L']; } else { $this->x += $this->cell_padding['L']; - $this->rMargin += $this->cell_padding['L']; + $this->rMargin += $this->cell_padding['R']; } } if ($this->customlistindent >= 0) {