Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Justify on MultiCell made to accept 'justify' or 'justified' as well …

…as 'J'.
  • Loading branch information...
commit 9e121ff6bd6d52d174eeec53b42271da19ad8aa9 1 parent a00fc97
Jon Gilbraith authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/tcpdf.rb
2  lib/tcpdf.rb
@@ -1855,7 +1855,7 @@ def MultiCell(w, h, txt, border=0, align='J', fill=0, ln=1)
1855 1855 end
1856 1856 Cell(w, h, s[from_j..to_index-1], b, 2, align, fill) # my FPDF version
1857 1857 else
1858   - if (align=='J')
  1858 + if (align=='J' || align=='justify' || align=='justified')
1859 1859 @ws = (ns>1) ? (wmax-ls)/(ns-1) : 0;
1860 1860 out(sprintf('%.3f Tw', @ws * @k));
1861 1861 end

0 comments on commit 9e121ff

Please sign in to comment.
Something went wrong with that request. Please try again.