summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2016-02-09 16:10:12 +0100
committerStefan Metzmacher <metze@samba.org>2016-06-20 12:08:20 +0200
commitcafb68fdc4a1e9ba14802a085d08aa98e3e8662e (patch)
treef0d3ff5fcb039346c7bef1b7e3b0a909c0e70d04 /pidl
parentbce85437b61e86f4cf7a693e61811b04ab64eefe (diff)
downloadsamba-cafb68fdc4a1e9ba14802a085d08aa98e3e8662e.tar.gz
pidl/ws: avoid trailing tabs
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>
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Wireshark/NDR.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
index 70fc56e8f63..c0f6876f598 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) {