From 006d03cd9fa882441d8f4f94db21adb7aa88804c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sun, 6 Sep 2020 18:00:30 +0200 Subject: [PATCH] v0.025 --- Changes | 6 ++++++ Makefile.PL | 2 +- dist.ini | 2 +- lib/YAML/PP.pm | 12 ++++++++++++ lib/YAML/PP/Schema/Merge.pm | 3 +++ 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 49b6ed95..5d0d379c 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,11 @@ Revision history for Perl module YAML::PP +0.025 2020-09-06 22:14:07+02:00 + + - Emitter: Fix indentation issues for non-default indents + - Emitter: Add option 'width' for maximum columns + - Improve error message for unhandled reftypes + 0.024 2020-08-17 12:07:01+02:00 - Parser: fix flow mappings on one line diff --git a/Makefile.PL b/Makefile.PL index 9e908724..29134cca 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -54,7 +54,7 @@ my %WriteMakefileArgs = ( "Test::Warn" => 0, "lib" => 0 }, - "VERSION" => "0.024", + "VERSION" => "0.025", "test" => { "TESTS" => "t/*.t" } diff --git a/dist.ini b/dist.ini index ef713259..825c5cab 100644 --- a/dist.ini +++ b/dist.ini @@ -4,7 +4,7 @@ license = Perl_5 copyright_holder = Tina Müller copyright_year = 2020 -version = 0.024 +version = 0.025 [@Filter] -bundle = @Basic diff --git a/lib/YAML/PP.pm b/lib/YAML/PP.pm index 4ba7466c..62e2eb56 100644 --- a/lib/YAML/PP.pm +++ b/lib/YAML/PP.pm @@ -546,6 +546,18 @@ Default: 2 Use that many spaces for indenting +=item width + +Since version 0.025 + +Default: 80 + +Maximum columns when dumping. + +This is only respected when dumping flow collections right now. + +in the future it will be used also for wrapping long strings. + =item header Default: 1 diff --git a/lib/YAML/PP/Schema/Merge.pm b/lib/YAML/PP/Schema/Merge.pm index ed041166..10f4d05e 100644 --- a/lib/YAML/PP/Schema/Merge.pm +++ b/lib/YAML/PP/Schema/Merge.pm @@ -92,6 +92,9 @@ Note that if you enable this schema, a plain scalar `<<` will be seen as special anywhere in your document, so if you want a literal `<<`, you have to put it in quotes. +Note that the performed merge is not a "deep merge". Only top-level keys are +merged. + =head1 METHODS =over