scan-adoc-refs: fix title change via attribute

This commit is contained in:
Dietmar Maurer 2016-10-14 07:48:29 +02:00
parent 44c96cef7a
commit 66e541d004

View File

@ -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"