mirror of
git://git.proxmox.com/git/pve-docs.git
synced 2025-03-09 08:58:19 +03:00
do not require 5 chars for headers
this patch changes the parses so that it detects headings with at least 3 characters instead of 5 (this prevented some block ids to not have a subchapter e.g. pct CPU) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
f3afbb7098
commit
9383cea2c9
@ -161,16 +161,16 @@ sub scan_adoc_file {
|
||||
|
||||
# try to detect titles
|
||||
foreach my $e (@{$env_stack->[-1]}) {
|
||||
if ($line =~ m/^=====+$/) {
|
||||
if ($line =~ m/^===+$/) {
|
||||
register_title($filename, $e, 0, $env_last_line->{$e},
|
||||
$env_last_blockid->{$e});
|
||||
} elsif ($line =~ m/^-----+$/) {
|
||||
} elsif ($line =~ m/^---+$/) {
|
||||
register_title($filename, $e, 1, $env_last_line->{$e},
|
||||
$env_last_blockid->{$e});
|
||||
} elsif ($line =~ m/^~~~~~+$/) {
|
||||
} elsif ($line =~ m/^~~~+$/) {
|
||||
register_title($filename, $e, 2, $env_last_line->{$e},
|
||||
$env_last_blockid->{$e});
|
||||
} elsif ($line =~ m/^\^\^\^\^\^+$/) {
|
||||
} elsif ($line =~ m/^\^\^\^+$/) {
|
||||
register_title($filename, $e, 3, $env_last_line->{$e},
|
||||
$env_last_blockid->{$e});
|
||||
} elsif ($line =~ m/^= +(\S.*?)( +=)?$/) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user