Cosmetic fix for pidl generated samba3 client code.
authorgd <gd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 8 Jan 2008 17:02:53 +0000 (17:02 +0000)
committergd <gd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 8 Jan 2008 17:02:53 +0000 (17:02 +0000)
Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26695 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm

index e174f77542bad845af458bb061f177b07dfbba07..d6b6296bd8d33e0ebd386cf4728f36eb6ebdadf5 100644 (file)
@@ -23,7 +23,7 @@ $VERSION = '0.01';
 
 sub indent($) { my ($self) = @_; $self->{tabs}.="\t"; }
 sub deindent($) { my ($self) = @_; $self->{tabs} = substr($self->{tabs}, 1); }
-sub pidl($$) { my ($self,$txt) = @_; $self->{res} .= "$self->{tabs}$txt\n"; }
+sub pidl($$) { my ($self,$txt) = @_; $self->{res} .= $txt ? "$self->{tabs}$txt\n" : "\n"; }
 sub pidl_hdr($$) { my ($self, $txt) = @_; $self->{res_hdr} .= "$txt\n"; } 
 sub fn_declare($$) { my ($self,$n) = @_; $self->pidl($n); $self->pidl_hdr("$n;"); }