lib/ayadn/view.rb in ayadn-2.0.5 vs lib/ayadn/view.rb in ayadn-2.0.6

- old
+ new

@@ -159,10 +159,17 @@ t << :separator if @iter >= 1 && Settings.options[:timeline][:compact] == false unless y.is_a?(Hash) t << [ k.to_s.color(:cyan), x.to_s.color(:yellow), y.to_s.color(:green) ] else y.each do |c| - t << [ k.to_s.color(:cyan), x.to_s.color(:yellow), "#{c[0]} = #{c[1]}".color(:green) ] + yk = c[0] + tempv = c[1].to_s + if tempv.size > 10 + yv = "#{tempv[0..7]}..." + else + yv = tempv + end + t << [ k.to_s.color(:cyan), x.to_s.color(:yellow), "#{yk} = #{yv}".color(:green) ] end end @iter += 1 end end