From cafb68fdc4a1e9ba14802a085d08aa98e3e8662e Mon Sep 17 00:00:00 2001 From: Aurelien Aptel Date: Tue, 9 Feb 2016 16:10:12 +0100 Subject: [PATCH] pidl/ws: avoid trailing tabs Port Wireshark commit 4f04a3c Author: Stefan Metzmacher Date: Thu Oct 29 08:32:52 2015 +0100 tools/pidl: avoid trailing tabs Change-Id: I293dd6f2d7ff3b0e27bc3cc49e69977604f12260 Signed-off-by: Stefan Metzmacher Reviewed-on: https://code.wireshark.org/review/11433 Reviewed-by: Anders Broman Signed-off-by: Aurelien Aptel Reviewed-by: Stefan Metzmacher Reviewed-by: David Disseldorp --- pidl/lib/Parse/Pidl/Wireshark/NDR.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm index 70fc56e8f633..c0f6876f598c 100644 --- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm +++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm @@ -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) { -- 2.34.1