Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlimited line_width with -1 #675

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading