Skip to content

Commit 3b63a93

Browse files
xuanxuhsbt
authored andcommitted
Unlimited line_width with -1
1 parent 045b311 commit 3b63a93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)