Patch #8617 » indent_subject_exported_pdf.patch
| lib/redmine/export/pdf.rb (working copy) | ||
|---|---|---|
|
module PDF
|
||
|
include ActionView::Helpers::TextHelper
|
||
|
include ActionView::Helpers::NumberHelper
|
||
|
include IssuesHelper
|
||
|
class ITCPDF < TCPDF
|
||
|
include Redmine::I18n
|
||
| ... | ... | |
|
pdf.SetFontStyle('',8)
|
||
|
pdf.SetFillColor(255, 255, 255)
|
||
|
previous_group = false
|
||
|
issues.each do |issue|
|
||
|
issue_list(issues) do |issue, level|
|
||
|
if query.grouped? &&
|
||
|
(group = query.group_by_column.value(issue)) != previous_group
|
||
|
pdf.SetFontStyle('B',9)
|
||
| ... | ... | |
|
show_value(cv)
|
||
|
else
|
||
|
value = issue.send(column.name)
|
||
|
if column.name == :subject
|
||
|
value = " " * level + value
|
||
|
end
|
||
|
if value.is_a?(Date)
|
||
|
format_date(value)
|
||
|
elsif value.is_a?(Time)
|
||