From 4c9d51f45b745c3fa2659eb9a137f84eaa0b9443 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 3 Oct 2023 20:48:30 -0400 Subject: [PATCH] allow "parent = ..." in extended attribute vendor format --- scripts/dict/format.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/dict/format.pl b/scripts/dict/format.pl index 2cc3ac92fc..3051e2a9b5 100755 --- a/scripts/dict/format.pl +++ b/scripts/dict/format.pl @@ -156,15 +156,20 @@ while (@ARGV) { # # Remember if we did BEGIN-VENDOR format= # - if (/^BEGIN-VENDOR\s+([-\w]+)\s+(format=[-\w]+)/) { + if (/^BEGIN-VENDOR\s+([-\w]+)\s+(.+)/) { + my $tabs; + $begin_vendor = 1; if (!defined $vendor) { $vendor = $1; } elsif ($vendor ne $1) { # do something smart } + if ($2) { + $tabs = tabs(32,$vendor); + } - push @output, "BEGIN-VENDOR\t$vendor $2\n"; + push @output, "BEGIN-VENDOR\t$vendor$tabs$2\n"; next; } -- 2.47.3