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