From 3446fd024e354e1614c90218b21cdf756bb4350c Mon Sep 17 00:00:00 2001 From: jj Date: Fri, 27 Apr 2012 17:38:31 +0200 Subject: [PATCH] ruby: tweak inspect --- plugins/ruby/ruby-memstruct.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/ruby/ruby-memstruct.rb b/plugins/ruby/ruby-memstruct.rb index cb99dbefb..813399760 100644 --- a/plugins/ruby/ruby-memstruct.rb +++ b/plugins/ruby/ruby-memstruct.rb @@ -127,13 +127,14 @@ class Compound < MemStruct end out << inspect_field(n, o, s) } + out.chomp!(' ') out << '>' end def inspect_field(n, o, s) if s.kind_of?(BitField) and s._len == 1 send(n) ? n.to_s : '' elsif s.kind_of?(Pointer) - s._at(@_memaddr+o).inspect + "#{n}=#{s._at(@_memaddr+o).inspect}" elsif n == :_whole "_whole=0x#{_whole.to_s(16)}" else