pidl/ws: avoid trailing tabs
authorAurelien Aptel <aaptel@suse.com>
Tue, 9 Feb 2016 15:10:12 +0000 (16:10 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 20 Jun 2016 10:08:20 +0000 (12:08 +0200)
Port Wireshark commit 4f04a3c

Author: Stefan Metzmacher <metze@samba.org>
Date:   Thu Oct 29 08:32:52 2015 +0100

    tools/pidl: avoid trailing tabs

    Change-Id: I293dd6f2d7ff3b0e27bc3cc49e69977604f12260
Signed-off-by: Stefan Metzmacher <metze@samba.org>
    Reviewed-on: https://code.wireshark.org/review/11433
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
pidl/lib/Parse/Pidl/Wireshark/NDR.pm

index 70fc56e8f63347cf81eda84a4b91bffdd57ed078..c0f6876f598c093db7953cfb8e158e770a1c5acd 100644 (file)
@@ -722,8 +722,11 @@ sub Struct($$$$)
        }
        $self->deindent;
        $self->pidl_code("}");
+       $self->pidl_code("");
 
-       $self->pidl_code("\n$res");
+       $self->deindent;
+       $self->pidl_code("$res");
+       $self->indent;
 
        $self->pidl_code("proto_item_set_len(item, offset-old_offset);\n");
        if (defined($doalign) and $doalign == 1) {