From 56831a531a0b16b154b147c8a7c7a12e373a1425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Fri, 12 Jul 2024 12:46:39 +0200 Subject: [PATCH] Unlimited line_width with -1 --- lib/psych.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/psych.rb b/lib/psych.rb index d87bd904..2f256334 100644 --- a/lib/psych.rb +++ b/lib/psych.rb @@ -479,6 +479,7 @@ def self.parse_stream yaml, filename: nil, &block # # Default: 2. # [:line_width] Max character to wrap line at. + # For unlimited line width use -1. # # Default: 0 (meaning "wrap at 81"). # [:canonical] Write "canonical" YAML form (very verbose, yet @@ -559,6 +560,7 @@ def self.dump o, io = nil, options = {} # # Default: 2. # [:line_width] Max character to wrap line at. + # For unlimited line width use -1. # # Default: 0 (meaning "wrap at 81"). # [:canonical] Write "canonical" YAML form (very verbose, yet