lib/juno-report/pdf.rb in juno-report-0.1.1 vs lib/juno-report/pdf.rb in juno-report-0.1.2

- old
+ new

@@ -98,10 +98,11 @@ settings = [settings[0], @posY, (@defaults.merge (settings[1] || { }))] settings[2][:style] = settings[2][:style].to_sym set_options settings[2] value = settings[2][:value].nil? ? (values.respond_to?(field) ? values.send(field) : "") : settings[2][:value] - draw_text value, settings + string_cut = settings[2][:cut].nil? ? value : value[0..settings[2][:cut]] + draw_text string_cut, settings end set_pos_y (section[:settings][:height]) unless section[:settings].nil? || section[:settings][:height].nil? end #Print a horizontal line with the whole width of the page.