indentation added with limit and multiline=false
bmon opened this issue · 0 comments
bmon commented
When using multiline and limit at the same time, the limit method prints extra indentation, within the single line of output. When multiline
is disabled, limit
should probably print the zipped (..
) item with zero indentation.
AwesomePrint.defaults = {
:multiline => false,
:limit => 3,
}
result:
[1] pry(main)> {:a => 'a', :b => 'b', :c => 'c', :d => 'd', :e => 'e'}
{ :a => "a", :b => "b" .. :e => "e" }
[2] pry(main)> {:a => { :a => {:a => 'a', :b => 'b', :c => 'c', :d => 'd', :e => 'e'}}}
{ :a => { :a => { :a => "a", :b => "b" .. :e => "e" } } }
expected:
[1] pry(main)> {:a => 'a', :b => 'b', :c => 'c', :d => 'd', :e => 'e'}
{ :a => "a", :b => "b" .. :e => "e" }
[2] pry(main)> {:a => { :a => {:a => 'a', :b => 'b', :c => 'c', :d => 'd', :e => 'e'}}}
{ :a => { :a => { :a => "a", :b => "b" .. :e => "e" } } }