Skip to content

Commit

Permalink
Justify on MultiCell made to accept 'justify' or 'justified' as well …
Browse files Browse the repository at this point in the history
…as 'J'.
  • Loading branch information
Jon Gilbraith committed Nov 7, 2008
1 parent a00fc97 commit 9e121ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tcpdf.rb
Expand Up @@ -1855,7 +1855,7 @@ def MultiCell(w, h, txt, border=0, align='J', fill=0, ln=1)
end
Cell(w, h, s[from_j..to_index-1], b, 2, align, fill) # my FPDF version
else
if (align=='J')
if (align=='J' || align=='justify' || align=='justified')
@ws = (ns>1) ? (wmax-ls)/(ns-1) : 0;
out(sprintf('%.3f Tw', @ws * @k));
end
Expand Down

0 comments on commit 9e121ff

Please sign in to comment.