indent_subject_exported_pdf.patch

Hayato Ito, 2011-06-15 16:30

Download (1.07 KB)

View differences:

lib/redmine/export/pdf.rb (working copy)
28 28
    module PDF
29 29
      include ActionView::Helpers::TextHelper
30 30
      include ActionView::Helpers::NumberHelper
31
      include IssuesHelper
31 32

  
32 33
      class ITCPDF < TCPDF
33 34
        include Redmine::I18n
......
182 183
        pdf.SetFontStyle('',8)
183 184
        pdf.SetFillColor(255, 255, 255)
184 185
        previous_group = false
185
        issues.each do |issue|
186
        issue_list(issues) do |issue, level|
186 187
          if query.grouped? &&
187 188
               (group = query.group_by_column.value(issue)) != previous_group
188 189
            pdf.SetFontStyle('B',9)
......
199 200
              show_value(cv)
200 201
            else
201 202
              value = issue.send(column.name)
203
              if column.name == :subject
204
                value = "  " * level + value
205
              end
202 206
              if value.is_a?(Date)
203 207
                format_date(value)
204 208
              elsif value.is_a?(Time)