Skip to content

Commit

Permalink
Unlimited line_width with -1
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Jul 12, 2024
1 parent be0ba74 commit 56831a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/psych.rb
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ def self.parse_stream yaml, filename: nil, &block
#
# Default: <tt>2</tt>.
# [<tt>:line_width</tt>] Max character to wrap line at.
# For unlimited line width use <tt>-1</tt>.
#
# Default: <tt>0</tt> (meaning "wrap at 81").
# [<tt>:canonical</tt>] Write "canonical" YAML form (very verbose, yet
Expand Down Expand Up @@ -559,6 +560,7 @@ def self.dump o, io = nil, options = {}
#
# Default: <tt>2</tt>.
# [<tt>:line_width</tt>] Max character to wrap line at.
# For unlimited line width use <tt>-1</tt>.
#
# Default: <tt>0</tt> (meaning "wrap at 81").
# [<tt>:canonical</tt>] Write "canonical" YAML form (very verbose, yet
Expand Down

0 comments on commit 56831a5

Please sign in to comment.