Commit c759e39c authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

validate TOC references

Change-Id: I09ff290bc7da85ca2087a485b67f717e55bd6666
Reviewed-by: default avatarFriedemann Kleint <>
parent 46408bd8
......@@ -129,6 +129,7 @@ my $last = $doctitle;
my $lastpage = $title2page{$last};
for my $title (@toc) {
my $page = $title2page{$title};
defined($page) or die "TOC refers to unknown page '$title'.\n";
$next{$last} = $page;
$prev{$title} = $lastpage;
$last = $title;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment