Skip to content

Commit

Permalink
Iterate on CONFIG_START support
Browse files Browse the repository at this point in the history
  • Loading branch information
kinkie committed Feb 9, 2025
1 parent 1f1c2e4 commit facca36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/www/build-cfg-help.pl
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,12 @@ ()
undef @chained;
} elsif ($_ =~ /^CONFIG_START$/) {
$state = "config";
$data->{'doc'} .= "```plaintext\n" if $format eq "markdown";
$data->{'doc'} .= "<pre>\n" if $format eq "html";
next;
} elsif ($_ =~ /^CONFIG_END$/) {
$data->{'doc'} .= "```" if $format eq "markdown";
$data->{'doc'} .= "</pre>\n" if $format eq "html";
$state = "";
my $othername;
foreach $othername (sort @chained) {
Expand All @@ -372,7 +376,6 @@ ()
} elsif ($state eq "doc") {
$data->{"doc"} .= $_ . "\n";
} elsif ($state eq "config") {
$data->{"doc"} .= " " if $format eq "markdown";
$data->{"doc"} .= $_ . "\n";
} elsif ($_ =~ /^COMMENT_START$/) {
end_options;
Expand Down

0 comments on commit facca36

Please sign in to comment.