diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-08 16:02:26 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-08 16:02:26 +0000 |
commit | ba9a959a183d08df424b822bb188d148d4fade43 (patch) | |
tree | 8f9474b09d678e69630c266ab089d1f83a586bcd /ext/psych/lib | |
parent | 74d40e41961903f91894463504d4af60acc93058 (diff) | |
download | ruby-ba9a959a183d08df424b822bb188d148d4fade43.tar.gz |
* ext/psych/emitter.c (line_width, set_line_width): preferred line may
be set on the emitter.
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
* test/psych/test_emitter.rb: corresponding tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/lib')
-rw-r--r-- | ext/psych/lib/psych/visitors/yaml_tree.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb index 8a12086458..620b520a75 100644 --- a/ext/psych/lib/psych/visitors/yaml_tree.rb +++ b/ext/psych/lib/psych/visitors/yaml_tree.rb @@ -54,7 +54,7 @@ module Psych version = @options[:version].split('.').map { |x| x.to_i } else version = [1,1] - end if @options[:version] + end if @options.key? :version @emitter.start_document version, [], false accept object |