From: Wei Liu Subject: [PATCH OSSTEST v2 07/11] Debian: grub2: Allow submenu and menuentry items to be indented. Date: Mon, 15 Jun 2015 14:36:35 +0100 Message-ID: <1434375399-19107-8-git-send-email-wei.liu2@citrix.com> References: <1434375399-19107-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z4UZa-0000es-1d for xen-devel@lists.xenproject.org; Mon, 15 Jun 2015 13:37:10 +0000 In-Reply-To: <1434375399-19107-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: ian.jackson@eu.citrix.com, Ian Campbell List-Id: xen-devel@lists.xenproject.org From: Ian Campbell Signed-off-by: Ian Campbell --- Osstest/Debian.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 5463fd0..50730f5 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -444,12 +444,12 @@ sub setupboot_grub2 ($$$$) { if (m/^function.*\{/) { $entry= { StartLine => $. }; } - if (m/^menuentry\s+[\'\"](.*)[\'\"].*\{\s*$/) { + if (m/^\s*menuentry\s+[\'\"](.*)[\'\"].*\{\s*$/) { die $entry->{StartLine} if $entry; $entry= { Title => $1, StartLine => $., MenuEntryPath => join ">", @offsets }; $offsets[$#offsets]++; } - if (m/^submenu\s+[\'\"](.*)[\'\"].*\{\s*$/) { + if (m/^\s*submenu\s+[\'\"](.*)[\'\"].*\{\s*$/) { $submenu={ StartLine =>$., MenuEntryPath => join ">", @offsets }; push @offsets,(0); } -- 1.9.1