Open bmon opened 5 years ago
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.
multiline
limit
..
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:
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.result:
expected: