Skip to content
Browse files

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

…as 'J'.
  • Loading branch information...
1 parent a00fc97 commit 9e121ff6bd6d52d174eeec53b42271da19ad8aa9 Jon Gilbraith committed Nov 7, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tcpdf.rb
View
2 lib/tcpdf.rb
@@ -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

0 comments on commit 9e121ff

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