Skip to content

Commit b567ae4

Browse files
authored
Merge pull request #675 from xuanxu/doc-line-width
Unlimited line_width with -1
2 parents 47aecb4 + 3b63a93 commit b567ae4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/psych.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ def self.parse_stream yaml, filename: nil, &block
479479
#
480480
# Default: <tt>2</tt>.
481481
# [<tt>:line_width</tt>] Max character to wrap line at.
482+
# For unlimited line width use <tt>-1</tt>.
482483
#
483484
# Default: <tt>0</tt> (meaning "wrap at 81").
484485
# [<tt>:canonical</tt>] Write "canonical" YAML form (very verbose, yet
@@ -559,6 +560,7 @@ def self.dump o, io = nil, options = {}
559560
#
560561
# Default: <tt>2</tt>.
561562
# [<tt>:line_width</tt>] Max character to wrap line at.
563+
# For unlimited line width use <tt>-1</tt>.
562564
#
563565
# Default: <tt>0</tt> (meaning "wrap at 81").
564566
# [<tt>:canonical</tt>] Write "canonical" YAML form (very verbose, yet

0 commit comments

Comments
 (0)