mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-10-04 21:02:31 +00:00
scan-adoc-refs: fix title change via attribute
This commit is contained in:
parent
44c96cef7a
commit
66e541d004
@ -107,13 +107,16 @@ sub register_title {
|
||||
die "unable to change title (no doctype)"
|
||||
if !defined($fileinfo->{doctype}->{$env}->{$filename});
|
||||
}
|
||||
} elsif (!defined($doctype)) {
|
||||
# change title via :title: attribute
|
||||
$fileinfo->{titles}->{$env}->{$filename} = $title;
|
||||
}
|
||||
|
||||
if (defined($doctype) && ($env eq 'manvolnum') && ($doctype == 0)) {
|
||||
if ($title =~ m/.*\(([1-8])\)\s*$/) {
|
||||
$fileinfo->{mansection}->{$env}->{$filename} = $1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($blockid) {
|
||||
die "internal error"
|
||||
|
Loading…
Reference in New Issue
Block a user