Skip to content

Commit

Permalink
Merge pull request #675 from xuanxu/doc-line-width
Browse files Browse the repository at this point in the history
Unlimited line_width with -1
  • Loading branch information
hsbt authored Sep 9, 2024
2 parents 47aecb4 + 3b63a93 commit b567ae4
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 b567ae4

Please sign in to comment.