From 9334d295209285cd5509bed59a7935488a70717a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 10 Nov 2011 10:10:24 +0000 Subject: [PATCH] pdf: indent subject of subtask ticket in exported issues PDF (#8617) Contributed by Hayato Ito. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7761 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/export/pdf.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 03b137a5b..d83e34a57 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -28,6 +28,7 @@ module Redmine module PDF include ActionView::Helpers::TextHelper include ActionView::Helpers::NumberHelper + include IssuesHelper class ITCPDF < TCPDF include Redmine::I18n @@ -186,7 +187,7 @@ module Redmine 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) @@ -203,6 +204,9 @@ module Redmine 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)