From 830778db95c1dca5dfad591eae5176d3133bf7ee Mon Sep 17 00:00:00 2001 From: Jeremy Ebler Date: Sun, 7 Feb 2021 18:39:07 -0800 Subject: [ruby/psych] feat: allow scalars and sequences to be styled when dumped https://github.com/ruby/psych/commit/546154ddb7 --- ext/psych/lib/psych/visitors/yaml_tree.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/psych') diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb index ac6777aeb5..bf7c0bb8ca 100644 --- a/ext/psych/lib/psych/visitors/yaml_tree.rb +++ b/ext/psych/lib/psych/visitors/yaml_tree.rb @@ -509,9 +509,9 @@ module Psych def emit_coder c, o case c.type when :scalar - @emitter.scalar c.scalar, nil, c.tag, c.tag.nil?, false, Nodes::Scalar::ANY + @emitter.scalar c.scalar, nil, c.tag, c.tag.nil?, false, c.style when :seq - @emitter.start_sequence nil, c.tag, c.tag.nil?, Nodes::Sequence::BLOCK + @emitter.start_sequence nil, c.tag, c.tag.nil?, c.style c.seq.each do |thing| accept thing end -- cgit v1.2.3