Fix parsing nested menus

This commit is contained in:
Samuel Thibault 2017-04-18 02:12:58 +02:00
parent 2b46d5bb72
commit 65e2a1c89b
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ foreach my $line(@lines) {
create_theme_file($menu{"number"});
$new_menu = 0;
}
} elsif ($line =~ /^label (\S*(rescue|install|auto|expert)\S*)/) {
} elsif ($line =~ /^[ \t]*label (\S*(rescue|install|auto|expert)\S*)/) {
if ($in_kernel) {
print_kernel(\%kernel);
undef %kernel;