diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-06 17:48:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-06 17:48:19 +0000 |
commit | 8201761e7732faa3933899653de5951dcbd6b27c (patch) | |
tree | d13d476efca02a4b4bf45a3b06b08ccda1aa6e97 /lib/plugins | |
parent | 43fb3211951ce170df5c7dd1b3f5da871470bdfc (diff) | |
download | redmine-8201761e7732faa3933899653de5951dcbd6b27c.tar.gz redmine-8201761e7732faa3933899653de5951dcbd6b27c.zip |
Adds an option for displaying the issue description on the issue list (#3447).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10948 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-rwxr-xr-x | lib/plugins/rfpdf/lib/tcpdf.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/plugins/rfpdf/lib/tcpdf.rb b/lib/plugins/rfpdf/lib/tcpdf.rb index 5c15b1aa7..62d07cd03 100755 --- a/lib/plugins/rfpdf/lib/tcpdf.rb +++ b/lib/plugins/rfpdf/lib/tcpdf.rb @@ -403,6 +403,9 @@ class TCPDF Error("Incorrect orientation: #{orientation}") end + @fw = @w_pt/@k + @fh = @h_pt/@k + @cur_orientation = @def_orientation @w = @w_pt/@k @h = @h_pt/@k @@ -3615,9 +3618,9 @@ class TCPDF restspace = GetPageHeight() - GetY() - GetBreakMargin(); writeHTML(html, true, fill); # write html text + SetX(x) currentY = GetY(); - @auto_page_break = false; # check if a new page has been created if (@page > pagenum) @@ -3625,11 +3628,13 @@ class TCPDF currentpage = @page; @page = pagenum; SetY(GetPageHeight() - restspace - GetBreakMargin()); + SetX(x) Cell(w, restspace - 1, "", b, 0, 'L', 0); b = b2; @page += 1; while @page < currentpage SetY(@t_margin); # put cursor at the beginning of text + SetX(x) Cell(w, @page_break_trigger - @t_margin, "", b, 0, 'L', 0); @page += 1; end @@ -3638,10 +3643,12 @@ class TCPDF end # design a cell around the text on last page SetY(@t_margin); # put cursor at the beginning of text + SetX(x) Cell(w, currentY - @t_margin, "", b, 0, 'L', 0); else SetY(y); # put cursor at the beginning of text # design a cell around the text + SetX(x) Cell(w, [h, (currentY - y)].max, "", border, 0, 'L', 0); end @auto_page_break = true; |