From 069692cbe0ad73e11ad46bb443cf1fe27bac7d60 Mon Sep 17 00:00:00 2001 From: "dennis.kaarsemaker@booking.com" Date: Mon, 11 Aug 2014 18:19:01 +0000 Subject: [PATCH] Explicitly disable wrapping when writing to file, leaving it up to the user's editor. No reason to have shelldap and editor wrap battles. Dennis Kaarsemaker FossilOrigin-Name: 574bf5133459a4354682e6db80b0c87a907d124aca3aeaebd17b1285a64b23b9 --- CONTRIBUTORS | 1 + shelldap | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index ba0b235..f095eee 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1,5 +1,6 @@ Adam Spiers Alexander Perlis +Dennis Kaarsemaker Emile "iMil" Heitor Gertjan Halkes Giacomo Tenaglia diff --git a/shelldap b/shelldap index aa179fd..878691d 100755 --- a/shelldap +++ b/shelldap @@ -655,7 +655,7 @@ sub ldif if ( $use_temp ) { my ( undef, $fname ) = File::Temp::tempfile( 'shelldap_XXXXXXXX', SUFFIX => '.ldif', DIR => '/tmp', UNLINK => 1 ); - $self->{'ldif'} = Net::LDAP::LDIF->new( $fname, 'w', sort => 1, wrap => $self->wrapsize ); + $self->{'ldif'} = Net::LDAP::LDIF->new( $fname, 'w', sort => 1, wrap => 0 ) $self->{'ldif_fname'} = $fname; } @@ -2248,7 +2248,7 @@ use strict; use warnings; $0 = 'shelldap'; -my $VERSION = '1.0.2'; +my $VERSION = '1.2.0'; use Getopt::Long; use YAML::Syck;