diff options
Diffstat (limited to 'lib/sisu/v6/html_minitoc.rb')
-rw-r--r-- | lib/sisu/v6/html_minitoc.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sisu/v6/html_minitoc.rb b/lib/sisu/v6/html_minitoc.rb index 0bb2794f..13045b0d 100644 --- a/lib/sisu/v6/html_minitoc.rb +++ b/lib/sisu/v6/html_minitoc.rb @@ -71,6 +71,7 @@ def initialize(md,data) @md,@data=md,data @pat_strip_heading_name=/<a name="h?\d.*?">(.+?)<\/a>/ + @ocn_html_identifier=SiSU_Env::ProcessingSettings.new(@md).ocn_html_identifier @tell=SiSU_Screen::Ansi.new(@md.opt.act[:color_state][:set]) if @md end def songsheet @@ -204,7 +205,7 @@ fn: @@seg_url, } f=@md.file.base_filename.html_seg(fnh) - lnk_n_txt=%{ <a href="#{f}##{txt.ocn}"> + lnk_n_txt=%{ <a href="#{f}##{@ocn_html_identifier}#{txt.ocn}"> #{txt.obj} </a>} txt_obj={ txt: lnk_n_txt } @@ -223,7 +224,7 @@ fn: @@seg_url, } f=@md.file.base_filename.html_seg(fnh) - lnk_n_txt=%{ <a href="#{f}##{txt.ocn}"> + lnk_n_txt=%{ <a href="#{f}##{@ocn_html_identifier}#{txt.ocn}"> #{txt.obj} </a>} txt_obj={ txt: lnk_n_txt } |