From 48e2009f6286130bf5b08b63170492fe0ab1957a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 14 Apr 2017 10:27:13 -0700 Subject: [PATCH] doc: in the HTML navbar, be explicit about the target Show thinks like "Chapter 2" and "Chapter 4" instead of "Previous Chapter"/"Next Chapter". Signed-off-by: H. Peter Anvin --- doc/rdsrc.pl | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/rdsrc.pl b/doc/rdsrc.pl index 719e9b2d..c79ac2e2 100644 --- a/doc/rdsrc.pl +++ b/doc/rdsrc.pl @@ -795,7 +795,8 @@ sub write_html { print "writing chapter files..."; open TEXT, '>', File::Spec->devnull(); select TEXT; - $html_lastf = ''; + undef $html_nav_last; + undef $html_nav_next; $in_list = 0; $in_bquo = 0; @@ -818,9 +819,9 @@ sub write_html { $title = "Chapter $1: "; $xref = $2; print "\n\n"; select STDOUT; close TEXT; - $html_lastf = $html_fnames{$chapternode}; + $html_nav_last = $chapternode; $chapternode = $nodexrefs{$xref}; - $html_nextf = $html_fnames{$tstruct_mnext{$chapternode}}; + $html_nav_next = $tstruct_mnext{$chapternode}; open(TEXT, '>', File::Spec->catfile($out_path, $html_fnames{$chapternode})); select TEXT; &html_preamble(1); @@ -836,9 +837,9 @@ sub write_html { $title = "Appendix $1: "; $xref = $2; print "\n\n"; select STDOUT; close TEXT; - $html_lastf = $html_fnames{$chapternode}; + $html_nav_last = $chapternode; $chapternode = $nodexrefs{$xref}; - $html_nextf = $html_fnames{$tstruct_mnext{$chapternode}}; + $html_nav_next = $tstruct_mnext{$chapternode}; open(TEXT, '>', File::Spec->catfile($out_path, $html_fnames{$chapternode})); select TEXT; &html_preamble(1); @@ -956,8 +957,14 @@ sub html_preamble { sub html_jumppoints { print "\n";