diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-02-05 00:56:10 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-02-05 00:56:10 -0500 |
commit | a151893efedaebc26d26a8f8611fb688a6de6d4f (patch) | |
tree | e5fbb47d3ce53c363af21f2242aa647d18b12f79 /lib/sisu/v6/html_minitoc.rb | |
parent | v5 v6: options, ocn switch on/off instructions (& defaults for plaintext & odt) (diff) |
v5 v6: ocn: strict html; turn on/off rules for txt & odf
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 } |