From 7b13cb9a7b1eefb4b2b4415a970d59aba779d4de Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 6 Jun 2012 22:52:26 -0400 Subject: v3: html_segments, @make.build.html_navigation?, fix, (excludes --exc-html-) --- lib/sisu/v3/html_segments.rb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v3/html_segments.rb b/lib/sisu/v3/html_segments.rb index cf6f2cfd..b527eaba 100644 --- a/lib/sisu/v3/html_segments.rb +++ b/lib/sisu/v3/html_segments.rb @@ -350,11 +350,16 @@ module SiSU_HTML_Seg def head(dob) clean=/|<:.*?>/ format_head_seg=SiSU_HTML_Format::HeadSeg.new(@md) - if @@tracker < @@seg_total-1 - if @@tracker==0; @@segtocband=format_head_seg.toc_next2 #if format_head_seg.toc_next2 - else @@segtocband=format_head_seg.toc_pre_next2 #if format_head_seg.toc_pre_next2 + if @make.build.html_navigation? + if @@tracker < @@seg_total-1 + @@segtocband=if @@tracker==0 + format_head_seg.toc_next2 #if format_head_seg.toc_next2 + else + format_head_seg.toc_pre_next2 #if format_head_seg.toc_pre_next2 + end + else @@segtocband=format_head_seg.toc_pre2 #if format_head_seg.toc_pre2 end - else @@segtocband=format_head_seg.toc_pre2 #if format_head_seg.toc_pre2 + else @@segtocband='' end @p_num ||= '' if @@is1==1 -- cgit v1.2.3