mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-22 15:09:40 +01:00
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:
parent
95c5938aaf
commit
749018f44d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user