PDF: use RDMMultiCell for drawing lines of issue description (#69).
Contributed by Jun NAITOH. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6136 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2d011453aa
commit
130c20c69d
|
@ -282,8 +282,6 @@ module Redmine
|
||||||
"#{issue.project} - #{issue.tracker} # #{issue.id}: #{issue.subject}")
|
"#{issue.project} - #{issue.tracker} # #{issue.id}: #{issue.subject}")
|
||||||
pdf.Ln
|
pdf.Ln
|
||||||
|
|
||||||
y0 = pdf.GetY
|
|
||||||
|
|
||||||
pdf.SetFontStyle('B',9)
|
pdf.SetFontStyle('B',9)
|
||||||
pdf.RDMCell(35,5, l(:field_status) + ":","LT")
|
pdf.RDMCell(35,5, l(:field_status) + ":","LT")
|
||||||
pdf.SetFontStyle('',9)
|
pdf.SetFontStyle('',9)
|
||||||
|
@ -331,18 +329,18 @@ module Redmine
|
||||||
pdf.RDMMultiCell(155,5, (show_value custom_value),"R")
|
pdf.RDMMultiCell(155,5, (show_value custom_value),"R")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
y0 = pdf.GetY
|
||||||
|
|
||||||
pdf.SetFontStyle('B',9)
|
pdf.SetFontStyle('B',9)
|
||||||
pdf.RDMCell(35,5, l(:field_subject) + ":","LT")
|
pdf.RDMCell(35,5, l(:field_subject) + ":","LT")
|
||||||
pdf.SetFontStyle('',9)
|
pdf.SetFontStyle('',9)
|
||||||
pdf.RDMMultiCell(155,5, issue.subject,"RT")
|
pdf.RDMMultiCell(155,5, issue.subject,"RT")
|
||||||
|
pdf.Line(pdf.GetX, y0, pdf.GetX, pdf.GetY)
|
||||||
|
|
||||||
pdf.SetFontStyle('B',9)
|
pdf.SetFontStyle('B',9)
|
||||||
pdf.RDMCell(35,5, l(:field_description) + ":","LT")
|
pdf.RDMCell(35+155, 5, l(:field_description), "LRT", 1)
|
||||||
pdf.SetFontStyle('',9)
|
pdf.SetFontStyle('',9)
|
||||||
pdf.RDMMultiCell(155,5, issue.description.to_s,"RT")
|
pdf.RDMMultiCell(35+155, 5, issue.description.to_s, "LRB")
|
||||||
|
|
||||||
pdf.Line(pdf.GetX, y0, pdf.GetX, pdf.GetY)
|
|
||||||
pdf.Line(pdf.GetX, pdf.GetY, pdf.GetX + 190, pdf.GetY)
|
|
||||||
pdf.Ln
|
pdf.Ln
|
||||||
|
|
||||||
if issue.changesets.any? &&
|
if issue.changesets.any? &&
|
||||||
|
|
Loading…
Reference in New Issue