Handle side padding correctly on writeHTML

Previously, right and left padding for HTML content were always equal on PDF, regardless of actual setting.
This commit is contained in:
Nikki DelRosso 2017-12-11 11:22:32 -07:00 committed by GitHub
parent 95c5938aaf
commit 749018f44d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {