0001-render-formatted-full-width-custom-fields-in-the-sam.patch

Jens Krämer, 2021-08-04 12:50

Download (1.53 KB)

View differences:

lib/redmine/export/pdf/issues_pdf_helper.rb
134 134

  
135 135
          custom_field_values = issue.visible_custom_field_values.select {|value| value.custom_field.full_width_layout?}
136 136
          custom_field_values.each do |value|
137
            text = show_value(value, false)
137
            is_html = value.custom_field.full_text_formatting?
138
            text = show_value(value, is_html)
138 139
            next if text.blank?
139 140

  
140 141
            pdf.SetFontStyle('B', 9)
141 142
            pdf.RDMCell(35+155, 5, value.custom_field.name, "LRT", 1)
142 143
            pdf.SetFontStyle('', 9)
143
            pdf.RDMwriteHTMLCell(35+155, 5, '', '', text, issue.attachments, "LRB")
144
            if is_html
145
              pdf.RDMwriteFormattedCell(35+155, 5, '', '', text, issue.attachments, "LRB")
146
            else
147
              pdf.RDMwriteHTMLCell(35+155, 5, '', '', text, issue.attachments, "LRB")
148
            end
144 149
          end
145 150

  
146 151
          unless issue.leaf?
147
-